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

How to programmatically close a sidecar (or all sidecars)? #112

Open
matt-gardner opened this issue Apr 20, 2024 · 2 comments
Open

How to programmatically close a sidecar (or all sidecars)? #112

matt-gardner opened this issue Apr 20, 2024 · 2 comments

Comments

@matt-gardner
Copy link

In my development loop, I frequently will need to restart the kernel in jupyter, which unlinks sidecars and leaves an unusable pane that I have to close. Reloading sidecars after a kernel restart gives a new tab instead of re-using the old one. Is there a way to easily close old sidecar tabs other than clicking on the X? I have a bunch of sidecar tabs loaded, and it gets cumbersome to click them all closed every time I restart the kernel.

Apologies that I'm using the issue tracker to ask a question; if this functionality exists, I guess this is a documentation request. If it doesn't, it's a feature request :).

@brianterry-ama
Copy link

Does Sidecar.close_all() work?

@matt-gardner
Copy link
Author

Yes, that works if I remember to run it before restarting the kernel, thanks! It doesn't work if I run it after restarting the kernel. Is there anything that would clean up the tabs after a kernel restart? Then I could put that as the first line in the first cell that I run after a kernel restart, and I wouldn't have to remember to clean up before restarting.

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