-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can jp_proxy_widget be installed without install #34
Comments
Sorry for the delay. I just tested this. At present I think you only need to do a "labextension install". Here is the history of my test just now (cleaned up a bit):
At this point I think proxy widgets work in classic notebook but not lab. To make them work in lab at present you need:
The jupyterlab build process is mysterious and frightening to me. I will keep looking.... |
This commit from jupyter-leaflet seems relevant, but I really don't understand what it is doing. Please let me know if you find any documentation on this. |
@AaronWatters you could ask support to Martin Renou or Jérémy Tuloup, those two are working a lot on the ipywidgets. It's Martin who told me about this new capability to release widgets without install. I don't know how we can invite another Github member to a discussion, I would have done it! Both also work at Quantstack (Sylvain Corlay company) |
@AaronWatters : you are not alone! |
Reason why your widget is very handy! @AaronWatters |
You could also go and see: widget-cookiecutter. This is a template for cookiecutter, maintained by Martin Renou to start building a new widget (ipywidgets). I would assume it is up-to-date. There is also another version for Typescript based ts based |
I spent a really miserable time trying to build a jupyterlab extension, and thought I'd made sensible notes at the time, but looking back at them, I'm not convinced they're as useful as I'd hoped they'd be:-( https://blog.ouseful.info/2022/04/12/notes-on-the-jupyterlab-notebook-html-dom-model-part-8-5-a-reproducible-development-process/ |
Hmmm... Looking at my own automation route ( https://github.com/innovationOUtside/jupyterlab_empinken_extension/blob/main/.github/workflows/pypi-extension.yaml ) it looks like you can get away with: python3 -m pip install build
python3 -m build and then the wheel is in |
In passing, the Binder demo appears to be broken again; Binder now launches into JupyterLab, and somewhere along the way, It'd be so useful if someone with core JuptyerLab devskills could maintain this project. It's the only way most of us have any chance of wrapping js in an |
Hello @psychemedia , could you please provide a link to the binder demo you are making reference? |
It works on my side @psychemedia . What is the problem you are seing? |
Chrome: Version 103.0.5060.134 |
My Issue seemed to be Ghostery. |
Looking at this issue again. It looks like you can avoid
if you add build hooks that copy magic generated files into magic file system Is there a use case that makes avoiding |
Hello @AaronWatters , I am using docker stacks to deploy the solutions I am creating for my customers. As I have more and more applications around, I am looking at components for which install and environment is minimal. My major use case is to use your component as a communication channel to/from python/js and it's very simple to use and quite reliable. |
I think you will need NodeJS to build I don't see how avoiding I'll take your word for it, but the details are not clear to me. |
I understand @AaronWatters : it's a matter of simplification, in that sense it's not mandatory to deploy the application: it's just more simple. Concerning resources, I experience big requirements in some cases above all in RAM, with less than 2GO, you can get into trouble. I even was able to deploy Jupyter lab on RPI A+ (512MO RAM), but as soon as you want to build, it does not work! (its not in my deployment targets for the apps we are talking about) But I agree that it is not simple task to have this jp_proxy_widgets with no installation as specifications for (ipy)widgets is not always cristal clear. |
@gbrault -- if you want a connector between javascript and python you should look at |
@AaronWatters I will give it a try |
I just spotted this migration utility which may help with upgrading this extension to a v3 extension that I think doens't need the explicit/manual installation step? https://jupyterlab.readthedocs.io/en/stable/extension/extension_migration.html#jupyterlab-2-x-to-3-x |
Hello,
@Aaron-Watters :
I see that "newer widgets" don't need to be installed, no
jupyter labextension install ...
is neededCould jp_proxy_widget implement this feature?
Thanks
The text was updated successfully, but these errors were encountered: