title: I need help setting up a jupyter notebook on nixos with julia
body: <p>I am trying to set up a development shell with Julia in a Jupiter notebook.</p>
  <p>I copied the code from juliaWith but I can't get it to work because there is an</p>
  <p>syntax error and I can't figure out where.</p>
  <p>Can someone please help me?</p>
  <pre><code>let
    jupyter = import (builtins.fetchGit {
      url = https://github.com/tweag/jupyterWith;
      # Example working revision, check out the latest one.
      rev = &quot;45f9a774e981d3a3fb6a1e1269e33b4624f9740e&quot;;
    }) {};
  
    iPython = jupyter.kernels.iPythonWith {
      name = &quot;python&quot;;
      packages = p: with p; [ numpy ];
    };
  
    iHaskell = jupyter.kernels.iHaskellWith {
      name = &quot;haskell&quot;;
      packages = p: with p; [ hvega formatting ];
    };
  
    let
      custom-python-env = pkgs.python3.buildEnv.override
      {
        extraLibs = with pkgs.python3Packages; [ xlrd ];
        ignoreCollisions = true;
      };
    in {
    iJulia =
      let
        juliaPackages = builtins.getEnv &quot;PRJ_ROOT&quot; + &quot;/packages/julia/&quot;;
      in
      jupyterWith.kernels.iJuliaWith rec {
        name = &quot;Julia-data-env&quot;;
        #Project.toml directory
        activateDir = juliaPackages;
        # JuliaPackages directory
        JULIA_DEPOT_PATH = juliaPackages + &quot;/julia_depot&quot;;
        extraEnv = {
          #TODO NEXT VERSION or PATCH
          #https://github.com/JuliaLang/julia/issues/40585#issuecomment-834096490
          PYTHON = &quot;${custom-python-env}/bin/python&quot;;
        };
      };
    }
  
  
    jupyterEnvironment =
      jupyter.jupyterlabWith {
        kernels = [ iPython iHaskell iJulia ];
      };
  in
    jupyterEnvironment.env
  </code></pre>