def set_options(self, **options):
        """Sets the value of the given options (as keyword arguments).
        Note that underscored in the option's name will be replaced with
        hyphens (i.e., ``c.set_options(gui_mode = True)``
        will set the option ``gui-mode``)
        """
        opt2 = self._contexts[-1]
        for k, v in options.items():
            k2 = k.replace("_", "-")
            if v is None:
                opt2.pop(k2, None)
            else:
                opt2[k2] = v
Sets the value of the given options (as keyword arguments).
        Note that underscored in the option's name will be replaced with
        hyphens (i.e., ``c.set_options(gui_mode = True)``
        will set the option ``gui-mode``)