maybe the names conflict
This commit is contained in:
		
							parent
							
								
									418e6d7b01
								
							
						
					
					
						commit
						9fa6c2e95a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -20,7 +20,7 @@
 | 
			
		|||
    pkgs.writeText "run_jupyter_from_helix.zsh"
 | 
			
		||||
    ''
 | 
			
		||||
      #! ~/.nix-profile/bin/zsh
 | 
			
		||||
      function new() {
 | 
			
		||||
      function is_new() {
 | 
			
		||||
        new=true;
 | 
			
		||||
        touch /tmp/rjh;
 | 
			
		||||
        cat /tmp/rjh | while read line
 | 
			
		||||
| 
						 | 
				
			
			@ -33,7 +33,7 @@
 | 
			
		|||
      }
 | 
			
		||||
 | 
			
		||||
      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=\'\'
 | 
			
		||||
          pwd >> /tmp/rjh
 | 
			
		||||
        fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue