You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When highlight is set to False upon creation of Console (console = Console(highlight=False), it does not appear to re-enable later on if I set highlight=True for an individual line.
I have only been learning Python for 3-4 weeks at most so far, so apologies if this is not actually a bug and I'm doing something incorrectly (or it actually is in the docs)
fromrich.consoleimportConsoleconsole=Console(highlight=False)
# This works as intended with no highlighting applied to the numbers.console.print('Testing 1 2 3')
# This does not, as the output is the same as the above even though I have tried to enable highlighting for this line.console.print('Testing 1 2 3', highlight=True)
Platform
Click to expand
Windows 11, Windows Terminal
Windows 11, Visual Studio Code integrated terminal
Ubuntu 22.04, Visual Studio Code integrated terminal
I've checked docs and closed issues for possible solutions.
I can't find my issue in the FAQ.
Describe the bug
When
highlight
is set to False upon creation of Console (console = Console(highlight=False), it does not appear to re-enable later on if I sethighlight=True
for an individual line.I have only been learning Python for 3-4 weeks at most so far, so apologies if this is not actually a bug and I'm doing something incorrectly (or it actually is in the docs)
Platform
Click to expand
Windows 11, Windows Terminal
Windows 11, Visual Studio Code integrated terminal
Ubuntu 22.04, Visual Studio Code integrated terminal
The text was updated successfully, but these errors were encountered: