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

See widgets without having the notebook open #103

Open
hbcarlos opened this issue Jan 15, 2021 · 0 comments
Open

See widgets without having the notebook open #103

hbcarlos opened this issue Jan 15, 2021 · 0 comments

Comments

@hbcarlos
Copy link
Contributor

hbcarlos commented Jan 15, 2021

Description

As it is right now, we need to have the original notebook open to see the widgets. This is related to not having a kernel session open.

Solution

The solution adopted on Voila-gridstack consists of registering the dashboard widget in the document manager as if it were a new DocumentWidget for a notebook. This allows keeping track of the notebook state by using as a DocumentModel the NotebookModel which is the class that implements the state of a Notebook in JupyterLab.

This solution makes complicate to work with outputs from two notebooks in the same dashboard. Besides, when cloning an output from the notebook to the dashboard if this output has a widget, it's necessary to register this widget into the widget manager and treat it as a new widget.

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

1 participant