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

Removing panel #131

Open
qrdlgit opened this issue Oct 16, 2023 · 0 comments
Open

Removing panel #131

qrdlgit opened this issue Oct 16, 2023 · 0 comments

Comments

@qrdlgit
Copy link

qrdlgit commented Oct 16, 2023

I looked extensively through the api, but it's not clear to me how to remove a panel after adding and losing the object variable in python.

This seems to work:

app = JupyterFrontEnd()
app.shell.add(panel, 'left', {'rank': 10000})
..
  panel.close()
  del panel

But what happens if you lose the panel object (eg: accidentally create a new and clobber it). Is there a way to enumerate through the app and get the panel and then clean it up?

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