-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Question regarding JupyterLab Widgets #2
Comments
thanks! yes, I believe we need to expose more JavaScript modules to the dynamically loaded extension. I can try to use your example to see if we can get something to work. |
Hi wolfv! I managed to put something together here https://github.com/TK-21st/jupyterlab-apod-dynext. What I'm doing is instead of loading extension dynamically, I'm injecting the I think making both work together would be the ideal solution. For now, I think I spend more time debugging/developing the Widget than the Extension so it works for me. |
awesome! Do you think we can combine these two solutions into one repo? |
That'd be great! Having said that, I'm actually not 100% clear how the workflow should look like combining the two.
And it'd also be really nice to have an NPM script which automatically bundles the custom-extension/widget into JLab as per normal. |
Thank you so much for this work! We've been looking for a quick way to develop/debug JLab extensions for quite some time now, and this seems to be of great help!
I have a question regarding JupyterLab widgets, particularly those that subclass
@lumino/widgets
. Simply put, if we use theAs a barebone example, I was trying to see if it'd be possible to dynamically load the tutorial widget/extension (https://github.com/jupyterlab/jupyterlab_apod).
So in this case, the index.js of the APOD Widget/Extension compiles into something like
And I tried to create a JS file which looks like
But it seems like
jupyter.extensions.jupyterWidgetRegistry
is not found and it's because I'm not usingjupyterlab-manager
since I'm trying to load a lab widget instead of a ipywidget.Could you suggest a way for dynamically loading and developing jupyterlab widget/extension?
The text was updated successfully, but these errors were encountered: