maybe the names conflict

This commit is contained in:
Lillian Violet 2024-10-23 17:48:11 +02:00
parent 418e6d7b01
commit 9fa6c2e95a

View file

@ -20,7 +20,7 @@
pkgs.writeText "run_jupyter_from_helix.zsh" pkgs.writeText "run_jupyter_from_helix.zsh"
'' ''
#! ~/.nix-profile/bin/zsh #! ~/.nix-profile/bin/zsh
function new() { function is_new() {
new=true; new=true;
touch /tmp/rjh; touch /tmp/rjh;
cat /tmp/rjh | while read line cat /tmp/rjh | while read line
@ -33,7 +33,7 @@
} }
function send_to_jupyter() { function send_to_jupyter() {
if $(new); then if $(is_new); then
zellij run -f -n "jupyter console" -- direnv exec . jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd | tr \"/\" -).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=\'\' zellij run -f -n "jupyter console" -- direnv exec . jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd | tr \"/\" -).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=\'\'
pwd >> /tmp/rjh pwd >> /tmp/rjh
fi fi