Zach Mitchell
Zach Mitchell
Just FYI, even though I can build `main` locally, my `nix-darwin` upgrade failed: ``` > src/realisepkgs/realise.cc:60:9: error: no member named 'force' in 'nix::eval_cache::CachedEvalError' > e.force(); > ~ ^ ``` I...
`nix shell github:flox/flox` builds though...
I get the same error on my NixOS machine as well. I'm not sure what you mean by "developer environment" because these were both just setting the flake ref to...
While investigating I noticed that the path `$FLOX_ENV/share/jupyter/labextensions` contains all three plugins: ``` ❯ ls $FLOX_ENV/share/jupyter/labextensions @jupyter-notebook @jupyter-widgets jupyterlab_pygments ``` However, the two that are listed by `jupyter labextensions list`...
I moved to Linux so I can run `strace` and found a different wrapper than what's shown above: ``` ❯ cat /nix/store/wf7fjhy0w63di1mj91xniz462lavwf5i-python3.12-jupyter-core-5.7.2/bin/.jupyter-wrapped #!/nix/store/pgb120fb7srbh418v4i2a70aq1w9dawd-python3-3.12.5/bin/python3.12 # -*- coding: utf-8 -*- import sys;import...
There's apparently another wrapper just for `jupyter-labextensions`: `/nix/store/jdaydbij5skwjlijmi350yc8vzlw0zhd-python3.12-jupyterlab-4.2.4/bin/.jupyter-labextension-wrapped`. It adds the following paths: ``` /nix/store/jdaydbij5skwjlijmi350yc8vzlw0zhd-python3.12-jupyterlab-4.2.4/lib/python3.12/site-packages /nix/store/4cr7klvv2gi8cw89k84yxcip0g2h4vf9-python3.12-async-lru-2.0.4/lib/python3.12/site-packages /nix/store/h7vb6dn9j1hy6h549d2212nibaqmm8r3-python3.12-httpx-0.27.0/lib/python3.12/site-packages /nix/store/9md8rwwy3cggb2p13g5lan86v3vml257-python3.12-anyio-4.4.0/lib/python3.12/site-packages /nix/store/sfq7plx1fiz435p8zjz4qdbd38vg4anj-python3.12-idna-3.7/lib/python3.12/site-packages /nix/store/lqvkpv7znlridr8b17zf2w6grmz41vp0-python3.12-sniffio-1.3.1/lib/python3.12/site-packages /nix/store/lv15r18cyqk2mxrgvhhcmiq5lmfmqsp9-python3.12-certifi-2024.07.04/lib/python3.12/site-packages /nix/store/p1rvcyr7590wpz95mpayhx3bk8na9m9m-python3.12-httpcore-1.0.5/lib/python3.12/site-packages /nix/store/msv5zpz7mjczsj37xs4gxwfxsid8q7ya-python3.12-h11-0.14.0/lib/python3.12/site-packages /nix/store/32q6cvqyhfk7jxhpk2csr8xfxcd20dhw-python3.12-packaging-24.1/lib/python3.12/site-packages /nix/store/8l1hrbill4dnfhnzq64m9cblblh9iy41-python3.12-tornado-6.4.1/lib/python3.12/site-packages /nix/store/40a9zkl8sl6j31ab6h66d09my46prxp4-python3.12-ipykernel-6.29.5/lib/python3.12/site-packages /nix/store/s53lqjsx3r783ygb0pcsgapdffnssbpf-python3.12-comm-0.2.2/lib/python3.12/site-packages /nix/store/w2vkiy06sw03i5kn48l8a0inpilf0x2q-python3.12-traitlets-5.14.3/lib/python3.12/site-packages /nix/store/wvrvvqcaf8x6nfpywh5a0srhnak93z0b-python3.12-debugpy-1.8.5/lib/python3.12/site-packages /nix/store/rds9plbsj4a10lbk8gix3s442vm3rxgz-python3.12-ipython-8.26.0/lib/python3.12/site-packages...
Aha! ``` ❯ JUPYTER_DATA_DIR="$FLOX_ENV/share/jupyter" jupyter labextension list `sys_prefix` level settings are read-only, using `user` level for migration to `lockedExtensions` JupyterLab v4.2.4 /nix/store/ni927g0pp68wmkbmanw5x5z92d91zgna-python3-3.12.5-env/share/jupyter/labextensions jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments) @jupyter-notebook/lab-extension v7.2.1...
I discovered a solution: ``` export JUPYTER_DATA_DIR="$FLOX_ENV/share/jupyter" ``` And you can verify that it works like this (note that `jupyter-widgets` is found now): ``` ❯ JUPYTER_DATA_DIR="$FLOX_ENV/share/jupyter" jupyter labextension list `sys_prefix`...
It's been a couple of weeks so I think I just misremembered. Essentially I would check for the existence of `"$FLOX_ENV/share/jupyter"` and if it exists set `JUPYTER_PATH` to that (or...
So far the behavior I'm seeing is consistent with the `env` folder being `gitignore`d. The files are successfully copied into the temporary non-bare repository that acts as `origin` for the...