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

Support JupyterLab #3

Open
thomasballinger opened this issue Nov 13, 2021 · 3 comments
Open

Support JupyterLab #3

thomasballinger opened this issue Nov 13, 2021 · 3 comments

Comments

@thomasballinger
Copy link
Owner

I have not yet opened JupyterLab to see if these work there. Since JupyterLab allows widgets to stick the side, bottom, etc. of the screen, how to we opt in into that?

@cornhundred
Copy link
Collaborator

I'm seeing the following error when I try to open the widget in JupyterLab

523.92b431af199caa12622d.js:1 Error: Module observable-jupyter-widget, semver range ^0.1.8 is not registered as a widget module
    at x.loadClass (523.92b431af199caa12622d.js:1:5727)
    at x.<anonymous> (272.eb0d340d1eec40ac564f.js:1:9479)
    at 272.eb0d340d1eec40ac564f.js:1:6081
    at Object.next (272.eb0d340d1eec40ac564f.js:1:6186)
    at 272.eb0d340d1eec40ac564f.js:1:5122
    at new Promise (<anonymous>)
    at D (272.eb0d340d1eec40ac564f.js:1:4867)
    at x.e._make_model (272.eb0d340d1eec40ac564f.js:1:9358)
    at x.<anonymous> (272.eb0d340d1eec40ac564f.js:1:9212)
    at 272.eb0d340d1eec40ac564f.js:1:6081

I'm thinking it might be related to this issue:
jupyter-widgets/widget-ts-cookiecutter#39

Here's a link to a Code Ocean capsule that reproduces the issue - works in Jupyter Notebook and does not run in Jupyter Lab.

@thomasballinger
Copy link
Owner Author

I tried to get this up and running this morning and it's going to take more work, I can't make a release atm.

Thanks for reporting. The linked issue sounds plausible to me, but when I look at the wheel I do see both the lab extension and the nbextension in there (this is after downloading the wheel here, unzipping it, and looking at the observable_jupyter_widget-0.1.8.dev0.data/ directory)
image

It is helpful to know that just publishing it at https://www.npmjs.com/package/observable-jupyter-widget may not be enough.

@cornhundred
Copy link
Collaborator

I raised an issue in the cookiecutter that I think you used to build this library @thomasballinger - let's see if we hear anything back :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants