Skip to content
Advertisement

Tag: customization

How can I run selected lines in Spyder 4?

In previous versions of Spyder, you can select lines in the editor, and only run those selected lines. In Spyder 4, when you select lines and press Ctrl+Enter it executes runcell(0, ‘/your/dir/file.py’) which runs the whole code. How can I run just the lines which I have selected? Answer The hotkey for running a the line at which the cursor

How do I customize text color in IPython?

I’d like to customize the color of text in IPython, but am not sure how to do it. I know that in Python, I can do this by ending sys.ps1 and sys.ps2 with an ANSI color code such as But the corresponding approach, using PromptManager.in_template, does not work for IPython. For example has no effect on the color of text

Advertisement