-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (36 loc) · 1017 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
set fallback
env_sep := if os() == "windows" { ";" } else { ":" }
venv := join(justfile_directory(), ".venv")
export PATH := join(venv, "bin") + env_sep + env_var("PATH")
defaut: list
list:
just --list
test:
pytest -vv --durations=50 --nbval --nbval-kernel-name rust .
kernels:
jupyter kernelspec list
lab:
jupyter lab
prep: prep-venv
uv pip install ipykernel nbval jupyterlab
rustup component add rust-src
cargo install --locked --force evcxr_jupyter
evcxr_jupyter --install
prep-venv:
#!/usr/bin/env bash
which uv || just prep-uv
if [ ! -d .venv ]; then
uv venv --seed --python 3.11
fi
old-prep:
#!/usr/bin/env bash
set -e
# assuming pyenv is installed
echo "locally, run this first: pyenv shell 3.11"
python3 -m pip install ipykernel nbval jupyterlab
rustup component add rust-src
cargo install --locked evcxr_jupyter
evcxr_jupyter --install
install-pyenv:
#!/usr/bin/env bash
curl https://pyenv.run | bash