I am currently using Jupyter on a Windows platform and I am looking to customize the coloring of the QT console.
Is there a way to set a default CSS style through a configuration file without having to manually specify it every time?
Instead of passing the styling as an argument like
jupyter qtconsole --style monokai
, I would prefer to define it in a configuration file, for example, something like %USERPROFILE%\.jupyter\jupyter_qtconsole_config.py
.
My goal is to simply write 'monokai' in the configuration file and have the QT console load the built-in 'monokai' style.
Here's what I've attempted so far:
To test it out, I ran
. This successfully applied the monokai style (white text on dark gray background) and paired well with my selected font size of 12 in file1.jupyter qtconsole --style monokai
Next, I tried to use my own CSS file. I saved a 'monokai.css' file in
C:\Users\user1
(I have multiple css files on my system, but any should work for basic customization). In file1, I added one of these linesc.JupyterQtConsoleApp.stylesheet = u'C:/Users/user1/monokai.css' c.JupyterQtConsoleApp.stylesheet = 'C:/Users/user1/monokai.css' c.JupyterQtConsoleApp.stylesheet = 'C:\\Users\\user1\\monokai.css'
Unfortunately, none of them worked as intended.
If I can get this working, I still need to figure out how to replace specifying a file location with just the name of a built-in CSS style.
PS: I am aware that I could create a Windows shortcut that launches
jupyter qtconsole --style monokai
, but I want to avoid that approach as well.