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

Use sidecar as a jupyterlab tab? #49

Closed
ianhi opened this issue May 10, 2020 · 6 comments
Closed

Use sidecar as a jupyterlab tab? #49

ianhi opened this issue May 10, 2020 · 6 comments

Comments

@ianhi
Copy link
Contributor

ianhi commented May 10, 2020

This sidecar is great! One thing that would improve it for me would be the ability to pull the side car off as it's own jupyterlab tab so I have more freedom in positioning and resizing it. Jupyterlab has the ability to create a new view of cell output in a new tab (https://youtu.be/Asa_ML45HP8) but there doesn't seem to be a way to do this from python like this widget does. It also doesn't capture the output from the appearing in the original cell like this widget does.

If this is both viable and desirable then maybe it could be available as a context menu option on the tab in the sidebar?

@thomasaarholt
Copy link

It would be very nice to be able to place sidecars in other directions than just on the right. As far as I'm aware, there are a couple of ways this could be implemented.

One way is to duplicate the current "right-side" behavior for left, top and bottom. I haven't tested it, but I believe a partial PR for this exists in #8. A slight issue with this is that the current mechanism for hiding/revealing/closing sidecars only exists on the right side of the window.

However, I like your alternative better. It would be nice to take advantage of the existing jupyterlab window functionality. Being able to call Sidecar(position='left') and have a new tab appear would be really nice.

@ianhi
Copy link
Contributor Author

ianhi commented Jun 4, 2020

For the left positioning you can swap sides from the context menu:

image

but it can be positioned in kinda strange ways, and also you lose the ability to close it:
image

If it ends up being that floating tabs don't have a place in this extension then at the very least it could serve as a nice launching point for a separate extension like this but with tabs. though I'm struggling to think of as snappy a name for such an extension.

@ianhi
Copy link
Contributor Author

ianhi commented Jun 4, 2020

It may even be enough just to change the 'right' to 'main' in this line

app.shell.add(w, 'right');

@ianhi
Copy link
Contributor Author

ianhi commented Jun 5, 2020

which is indeed exactly what the PR you mentioned does

@krassowski
Copy link
Contributor

I think that it can be closed now as #8 was just merged :) 🎉

@ianhi
Copy link
Contributor Author

ianhi commented Feb 19, 2021

I think that it can be closed now as #8 was just merged :) tada

Indeed. thanks!

@ianhi ianhi closed this as completed Feb 19, 2021
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

3 participants