-
Notifications
You must be signed in to change notification settings - Fork 8
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
Widget does not show anymore after restarting jupyterlab server #40
Comments
Hi Jan-Hendrik, What you need to do is embed the widget state into the notebook (which is not enabled by default). Classic notebook and lab have that under different parts of the UI. Regards, Maarten |
That seems like a bug in ipywidgets, the lab widget manager. Which version are you in? Do you want to check if this is reported at https://github.com/jupyter-widgets/ipywidgets already? And, does it work nonetheless, or is it broken? |
I'm in JupyterLab Version 4.0.2.
I've just checked, and no, this is not yet reported. Should I make a report? Regarding ipyreact: unfortunately yes, after restating the kernel and reopening the notebook, I still see the message: |
Yes, that means that the widget is not connected to the kernel.
Yes please :) Did you check if it works in jlab 3.6? |
I just did some more testing. I run this below example, restart the kernel, and then close and reopen the notebook. import ipyreact
class MyExampleWidget(ipyreact.ReactWidget):
_esm = """
import * as React from "react";
export default function MyButton() {
return < button > X < /button>
};"""
MyExampleWidget() the output will then say: and the error in the console will say:
|
Closing this, as it's not an ipyreact issue. |
When I save a notebook with a rendered ipyreact output and then restart the jupyterlab server, the widget does not show anymore. It would be really amazing if this was possible!
here is a minimal example for testing:
The text was updated successfully, but these errors were encountered: