def use_code_colorscheme(self, name):
        """
        Apply new colorscheme. (By name.)
        """
        assert name in self.code_styles

        self._current_code_style_name = name
        self._current_style = self._generate_style()
dataset/ETHPy150Open jonathanslenders/ptpython/ptpython/python_input.py/PythonInput.use_code_colorscheme/original