-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
A way to load assets once #319
Comments
I think that one of the things we are trying to figure out. Using It is one of the area where we would need experience from people that use javascript more than we do for this kind of things. |
You're right, using |
It should be noted, additional work, somewhat related is being done in #268 which allows npm packages and modules to be used in the core notebook code (not yet extended to extensions). |
Hi All: Based on the activity on #116 is there still work to do on this issue & can it be closed? thanks! |
This definitely still needs to be done, it's one of the biggest limitations of the notebook. @shashi are you still interested in this? |
Yes of course! :) |
cc'ing @gnestor |
So if an output contains an HTML import and that cell is run a 2nd time, it will try to do another HTML import and result in a fatal error? The first solution that comes to mind is to create an extension and move the HTML imports and whatnot to it so that the HTML imports only happen on notebook load. This would also allow the web component(s) to be used across profiles and kernels. I've created a cookiecutter for generating renderer extensions for both classic notebook and JupyterLab. This allows your extension to register a custom mime type (e.g. |
links to code are broken now. But thanks! |
As explained in JuliaLang/IJulia.jl#339
Javascript containing web component declarations cannot be loaded safely by packages, because a kernel restart would cause the Javascript to be loaded again, which is a fatal error. What could be done about this?
The text was updated successfully, but these errors were encountered: