jupyterlab-desktop icon indicating copy to clipboard operation
jupyterlab-desktop copied to clipboard

sync jupyterlab theme with OS client settings

Open xgdgsc opened this issue 2 years ago • 6 comments

Can it sync jupyterlab light/dark theme with OS? When using browser with dark reader extension. It can sync with OS.

xgdgsc avatar Dec 05 '23 08:12 xgdgsc

@mbektas noted that there's a "Sync JupyterLab theme" option in prefs: https://github.com/jupyterlab/jupyterlab-desktop/issues/543#issuecomment-1355973951

Which theme option do you have selected in the Settings window? Which OS and which JupyterLab Desktop version are you running?

JasonWeill avatar Dec 12 '23 17:12 JasonWeill

Yes I have that enabled and not working on Windows with auto dark mode installed. I use latest release jupyterlab-desktop with a remote ssh forwarded session. Does the option only work with local sessions?

xgdgsc avatar Dec 13 '23 01:12 xgdgsc

@xgdgsc yes, the sync theme is designed to work for locally launched sessions or remote sessions that were launched with --expose-app-in-browser.

mbektas avatar Dec 17 '23 20:12 mbektas

Thanks for the tip for --expose-app-in-browser . Would it be better if adding that tip to the settings UI?

xgdgsc avatar Dec 18 '23 01:12 xgdgsc

It seems only work when reopen the session. Can it be made work with working inside the session , when system switches, do the switch? Just like other apps like vscode/edge can do.

xgdgsc avatar Dec 18 '23 09:12 xgdgsc

@xgdgsc --expose-app-in-browser is mainly intended for testing launches and used by desktop app as well. It is not suggested for general use cases. Some setting changes do not really require restarts and can be applied in place, but we didn't get chance to optimize. Something to improve in future.

mbektas avatar Dec 18 '23 17:12 mbektas