From 6d795095eb27266d6fb0a7b140d18ed35481c407 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Fri, 11 Jul 2025 00:16:56 +0300 Subject: [PATCH] Run the Jupyter Lab server in a dedicated Zellij session --- .config/sway/config | 1 + .config/zellij/layouts/jupyter.kdl | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .config/zellij/layouts/jupyter.kdl diff --git a/.config/sway/config b/.config/sway/config index 483fc87..6599799 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -68,6 +68,7 @@ input type:touchpad { # Start a terminal bindsym $launch+Return exec $term bindsym $launch+t exec $term zellij attach --create main + bindsym $launch+j exec $term zellij --layout jupyter attach --create jupyter # Start Emacs bindsym $launch+e exec emacsclient --alternate-editor "" --create-frame diff --git a/.config/zellij/layouts/jupyter.kdl b/.config/zellij/layouts/jupyter.kdl new file mode 100644 index 0000000..223f0f0 --- /dev/null +++ b/.config/zellij/layouts/jupyter.kdl @@ -0,0 +1,7 @@ +layout { + pane { + command "jupyter" + args "lab" "--notebook-dir" "~/Projects/notebooks/" + cwd "~" + } +}