-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
On storybook and locally, can't get Lite to actually run a cell. #329
Comments
Hi @doelgonzo I have opened #330 to align the storybook code base to the latest changes. I have also redeployed that branch online. You can try again https://jupyter-ui-storybook.datalayer.tech/?path=/story/components-notebook--lite-python Make sure you shift-reload (SHIFT-F5), pyodide sometimes cache previous code. Also, I have seen weird response sometimes from piplite (no wheel...), which I have worked around browsing with Incognito Browser (make sure to enable 3rd party cookie if you use that). Screencast.from.11-19-2024.02.40.11.PM.webm |
just deployed with micropip which responds better for me
|
Thank you! I see it working now. I got it to run on my environment (using |
In #330 I have added to the NotebookLite example the KernelIndicator component. This is the code, happy to discuss if we could extract higher level API to better expose those states
|
Thanks for this. Wondering, why does the kernel run when using |
This is documented on https://jupyter-ui.datalayer.tech/docs/develop/setup/
The upstream jupyterlab enforce us to use yarn. In most case, npm works fine, but sometimes not... I am pretty sure there is ways to make it 100% work with more man and brain power. That is something that would really help, especailly in the vercel/nextjs cases. |
gotcha. As for exposing these at a higher level, I would love to contribute some ideas on this, as I think a hook that returns statuses would benefit the react workflow, especially knowing status, as I want to block the Notebook until we get a connected/idle for the first time. In any case, I have this working on a dev build, but on a production build, I get the following:
Any idea why that would be? Note I only use the in-browser Note my python is not fully-fluent yet, so it may be something obvious I'm missing. |
Found that it works if I change this
to
Not sure why... but hey, it's working now. |
lite relies on a service worker and browser caches, they drive sometimes to weird and unexpected things. Happy you it works for you now. For the event kernel lifecycle, please open a separated issue to discuss. This has been introduced for the Output working on that with @sok82 |
I have seen similar issue while using pyodide and don't think atm we can do a lot, apart from making sure we track the latest versions of the stack and report back those issues to the upstream projects. |
Description
Selecting any of these cells and pressing Shift+Enter is producing no output. Tried locally and got the same behavior (I added empty metadata objects because it was throwing an error for that in the storybook
https://jupyter-ui-storybook.datalayer.tech/?path=/story/components-notebook--lite-python
Reproduce
Navigate here:
https://jupyter-ui-storybook.datalayer.tech/?path=/story/components-notebook--lite-python
Tried on different browsers, same result.
Expected behavior
Maybe I'm missing instructions on how to run Lite?
Context
"@datalayer/jupyter-react": "0.18.12",
The text was updated successfully, but these errors were encountered: