maybe the names conflict
This commit is contained in:
parent
418e6d7b01
commit
9fa6c2e95a
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue