[IPython-dev] Best way to get the path to the static directory

Thorin Tabor tabor at broadinstitute.org
Thu Sep 10 15:05:47 EDT 2015


When writing a Jupyter notebook extension for Jupyter 4, what is the 
recommended way to get the path to the static directory (you know, the 
one where custom.js and custom.css are being served from)?

In Jupyter 3.x, you used to be able to reference...

    IPython.utils.path.locate_profile() + '/static'

...but that no longer seems to suffice. I know that...

    notebook.notebookapp.DEFAULT_STATIC_FILES_PATH

looks like it might work, but it seems like there ought to be a better 
way. Does anyone have a recommendation?

Thorin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150910/9665c723/attachment.html>


More information about the IPython-dev mailing list