MaelImhof / obsidian-jupyter

Edit .ipynb Jupyter files directly in Obsidian.
https://jupyter.mael.im/
39 stars 1 forks source link

Open Jupyter Lab in Simple Interface mode by default #89

Closed MaelImhof closed 2 months ago

MaelImhof commented 2 months ago

(Originally suggested on Discord)

Jupyter Lab provides an appearance setting called Simple Interface which removes tabs and unnecessary UI elements to focus on the file that is being edited.

The Simple Interface better fits in Obsidian's UI, but currently the plugin always opens Jupyter Lab in normal mode, and simple mode must be enabled manually every time, which is painful.

Would be great to have a setting that enables/disables Simple Interface by default in the plugin's settings directly, so that the user can set their preference once and for all.

Luckily, the person who suggested this on Discord also provided a link to this Jupyter discourse post, which gives a relatively straight-forward way of implementing it in the current state of the plugin without too much trouble (at least I hope so, I'll see it when I implement it lul).

More specifically, changing lab/tree to doc/tree on this line in jupyter-env.ts worked when I quickly tested it. Now a setting should be available for the user to tell the plugin what their preference are.