Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide mean to retrieve static data path #2268

Closed
juliantaylor opened this issue Aug 7, 2012 · 6 comments
Closed

provide mean to retrieve static data path #2268

juliantaylor opened this issue Aug 7, 2012 · 6 comments
Labels
Milestone

Comments

@juliantaylor
Copy link
Contributor

currently the html conversion of nbconvert does not work with with the debian ipython package.
the debian package places the static data into usr/share to share it between python2 and 3, but nbconvert searches for boilerplate.css in the ipython installation path (usr/lib or IPython.utils.path.get_ipython_package_dir)

To solve this a way should be added to query from the installation where the static data is located without having to start a full notebookapp.
This can then be patched by packagers to return the correct value.

an issue might be when users replace part of the static path with to provide customized notebook and want that represented in nbconverts html export. Can custom paths be retrieved without starting a notebookapp?

@minrk
Copy link
Member

minrk commented Feb 25, 2013

@juliantaylor does #2932 fix this well enough?

@juliantaylor
Copy link
Contributor Author

yes seems it to work with nbconvert (after fixing html.py for the new css layout, see 9d59d16 )

but it doesn't deal with users changing the static path in their configuration
It may make sense to ignore that as it probably brings in a lot extra complexity

@minrk
Copy link
Member

minrk commented Feb 25, 2013

I don't think we need to support that - if a user is setting a custom path, they may need to set it in more than one place.

@Carreau
Copy link
Member

Carreau commented Mar 28, 2013

It would be great to expose it outside of notebookapp as to get it you need to import nbookapp which require pyzmq. It seem a little silly to require pyzmq just to be able to get a path... (found through nbviewer which uses nbconvert)

@minrk
Copy link
Member

minrk commented Mar 28, 2013

Try #3105

@minrk
Copy link
Member

minrk commented Jul 4, 2013

for 1.0, this will be:

from IPython.html import DEFAULT_STATIC_FILES_PATH

@minrk minrk closed this as completed Jul 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants