When working with Jupyter Notebooks with a Python kernel, I just type the code below to apply my custom css file, which live in the same repository as my Notebook. It works