forked from jeroenjanssens/plotnine-tutorial-pydata-nyc-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.setup.sh
25 lines (21 loc) · 808 Bytes
/
.setup.sh
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
# This script is not necessary for students.
# It contains notes on how the original project was set up,
# in order to allow students to start right away, without
# needing to install dependencies.
# note that uv will not be inside student projects,
# since it is installed outside the project directory
curl -LsSf https://astral.sh/uv/install.sh | sh
# this ensures that uv installs python within
# our project directory. Otherwise, it won't be
# included when students recreate it.
export UV_PYTHON_INSTALL_DIR=".uv"
# sync uv ----
# creates a virtual environment in the project's .venv folder
#
# uv sync
# set python kernel ----
# the key here is that it matches the name of the kernel
# set inside the jupyter notebooks
#
# source .venv/bin/activate
# ipython kernel install --name "python3" --user