-
Notifications
You must be signed in to change notification settings - Fork 71
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
LoadGlobalJavaScript embeds javascript code which crops notebook #226
Comments
It's a choice, you can use that approach which is convenient for self-contained notebooks but you can also insert loads from a CDN. |
I could not make it work as self-contained anyway. Cells had to be re-run again in order for content to be rendered. |
Also for customizations and self-containerization suggested the approach is to save .js files on disk and load from notebook instead of embedding js into the notebook itself. 9k extra Loc only for loading a dependency as in provided repro is not fun to read and diff. |
By self-contained I mean a single file so that it can be sent to others without path issues. It's not a context I would diff - personally I prefer wiping output before committing due to the Jupyter security model which is what usually causes me to have to re-run. LoadGlobalJavaScript is a bit of hack I wrote, but it's doing what I intended it to do. Are you proposing it do something else? |
I'm only suggesting to try to find a workaround for |
If external js is loaded via LoadGlobalJavaScript whole Javascript get's embedded into a notebook, and then it won't be viewable via GitHub or nbviewer.
See repro in #224
The text was updated successfully, but these errors were encountered: