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

add custom js file via settings #299

Closed
hiaselhans opened this issue Aug 16, 2015 · 4 comments
Closed

add custom js file via settings #299

hiaselhans opened this issue Aug 16, 2015 · 4 comments

Comments

@hiaselhans
Copy link

This is a request rather than a bug:

it used to be possible to do something similar to this:

c = get_config()
c.NotebookApp.extra_static_paths = [os.path.join(dirname, 'static')]

and then have a "static/custom/custom.js" file which would be loaded on startup.
is there a straightforward way to achieve anything like this or do i have to put it in my .ipython directory?

best regards,
simon

@Carreau
Copy link
Member

Carreau commented Aug 16, 2015

in Jupyter 1.0 and Notebook 4.0 all should be the same except (roughly) replace ~/.ipython/profile_default/ by ~/.jupyter

if you drop a file in .jupyter/custom/custom.js it should work without extra modification.

@Carreau Carreau closed this as completed Aug 16, 2015
@auneri
Copy link

auneri commented Aug 27, 2015

I see this issue is closed, and the provided answer (workaround) does indeed work, but I am still having a problem specifying extra_static_paths that point to locations outside the standard ~/.jupyter directory.

Turning on debug option, I can see that the configuration is read properly, no errors are reported, but the custom.js is simply ignored. FYI, the same configuration works on v3.

@hiaselhans
Copy link
Author

indeed, thats what i used to do in earlier versions of ipython... i had a
custom run.py which did that thing amongst others... however i think the
file is still available in current upstream, but with "/static" prefixed,
so "/custom/custom.js" will not point to your file which seems to be at
"/static/custom/custom.js". at least thats what occured to me...

2015-08-27 17:35 GMT+02:00 Ali Uneri notifications@github.com:

I see this issue is closed, and the provided answer (workaround) does
indeed work, but I am still having a problem specifying extra_static_paths
that point to locations outside the standard ~/.jupyter directory.

Turning on debug option, I can see that the configuration is read
properly, no errors are reported, but the custom.js is simply ignored.
FYI, the same configuration works on v3.


Reply to this email directly or view it on GitHub
#299 (comment).

@auneri
Copy link

auneri commented Sep 3, 2015

I think this issue is related to #199, and should be reopened.

@minrk minrk added this to the no action milestone Dec 14, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants