-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcreate_sci_env.sh
More file actions
executable file
·57 lines (47 loc) · 958 Bytes
/
create_sci_env.sh
File metadata and controls
executable file
·57 lines (47 loc) · 958 Bytes
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
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Usage: ./create_scientific_env.sh my-env-name
ENV_NAME="$1"
if [ -z "$ENV_NAME" ]; then
echo "Usage: $0 <env-name>"
exit 1
fi
mkdir "$ENV_NAME"
cd "$ENV_NAME" || exit
# Create pixi.toml
cat > pixi.toml <<EOF
[project]
name = "$ENV_NAME"
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64"]
[dependencies]
numpy = "*"
scipy = "*"
matplotlib = "*"
jupyter = "*"
notebook = "6.*"
pandas = "*"
scikit-learn = "*"
scikit-image = "*"
uncertainties = "*"
opencv = "*"
pandoc = "*"
jupyter-book = "*"
ipywidgets = "*"
astropy = "*"
dask = "*"
mysqlclient = "*"
seaborn = "*"
tifffile = "*"
tqdm = "*"
pytest = "*"
matplotlib-scalebar = "*"
ffmpeg = "*"
rise = "*"
jupyter_contrib_nbextensions = "*"
EOF
# Install environment
pixi install
# Setup Jupyter nbextensions
pixi run jupyter contrib nbextension install --user
pixi run jupyter nbextension enable rise/main
echo "✅ Pixi environment '$ENV_NAME' created and configured."