dask / dask-labextension

JupyterLab extension for Dask
BSD 3-Clause "New" or "Revised" License
311 stars 62 forks source link

hiding/restoring tabs in jupyterlab #184

Closed SultanOrazbayev closed 3 years ago

SultanOrazbayev commented 3 years ago

Currently, if I open some dask tabs in jupyterlab, they will become a fixed part of the layout, so if I switch to a notebook/workflow that doesn't involve dask, they take up screen space.

If I close dask tabs, then later I would need to reopen the dask tabs manually, so it would be great if there was a button (similar to the cell properties button on the screenshot) that could hide/unhide dask tabs (preserving layout).

image

jacobtomlinson commented 3 years ago

I'm not sure if this is something we can do from the extension.

SultanOrazbayev commented 3 years ago

Ah, ok, thanks!

mrocklin commented 3 years ago

I think that a possible broader question is "Can JupyterLab support pre-configured layouts?"

I recommend waiting until California wakes up and @ian-r-rose has a chance to comment

On Wed, Apr 21, 2021 at 8:53 AM Sultan Orazbayev @.***> wrote:

Closed #184 https://github.com/dask/dask-labextension/issues/184.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dask/dask-labextension/issues/184#event-4625167971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKZTD72SF7B4HBPEUUKY3TJ3KFBANCNFSM43JXMOJQ .

ian-r-rose commented 3 years ago

@SultanOrazbayev good question! I think there are two related questions here:

  1. Can JupyterLab have pre-configured layouts? The answer is yes, but it's not particularly ergonomic or easy to use (the primary intention for it is to preserve layout upon page refresh, but we can use it to also distribute layouts).
  2. Can we hide/restore a complex layout of dask dashboard panels? I think this is more what you are after. You might be interested to try the "Simple" layout toggle, in the lower left corner (since JupyterLab 3). This will show only the currently active document (e.g., a notebook). Once you toggle it off, it will restore the old layout, which might include dask plots. image
SultanOrazbayev commented 3 years ago

@ian-r-rose Thank you for the quick feedback! I think this was a bit rushed of me to submit this feature suggestion, since a lot of it is specific to my setup (I'm using a wide-screen, and have a couple of notebooks/config files in parallel).