Setting flag for custom.css to change markdown in jupyter-lab

After designing the custom.css to change markdown-style, I stored it in the config directory for jupyter. It worked correctly with jupyter-notebook.

However my favourite editor is jupyter-lab, so I tried to find the correct json-file to set the flag (–custrom-css). It should be in the “LabApp.custom_css config”, which I am unable to find. Unfortunatly this is the only hint without any example.

I am using jupyter-lab 4.4.2 inside winpython 13.05

A hint is appreciated.

I didn’t find the appropiate file but while saving jupyter notebooks in jupyter lab as html-files, my formerly defined custom.css was applied.

So, I don’t see the changes in jupyter lab directly, but after converting it via the menue to html.

This is not what I initially wanted but better than nothing.

Still - if anyone has an idea I’d like to try it.

Did you first run the following command on the windows command line equivalent?

jupyter lab --generate-config

Otherwise you can launch JupyterLab adding the flag to the command line there when you call JupyterLab so that the flag is passed in, like the following:

jupyter lab --custom-css

Thank you - both hints work just fine.

Life could have been so easy - I mistrusted the generate-config command because a blog claimed, that it didn’t work with python-versions larger than 9. Obiously false.

I cose this thread as solved.