Skip to content

Commit d1c305c

Browse files
authored
Installation updated
1 parent 8344ac1 commit d1c305c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ python3 -m venv venv
1414
source venv/bin/activate
1515
1616
python3 -m pip install --upgrade pip
17+
18+
# Install all of the packages (including jupyterlab, jupyterlab_myst, and jupyter-book)
19+
python3 -m pip install -r requirements.txt
1720
```
1821
At the end of using your virtual environment, you deactivate it with
1922
```
@@ -38,6 +41,27 @@ Here we will work with [Jupyter Book 2](https://next.jupyterbook.org/) that is b
3841
```
3942
pip install "jupyter-book>=2.0.0a0"
4043
```
44+
To make use of Jupyter Book 2, you need to have [Node.js](https://nodejs.org/en/download) installed on your computer. If this is not the case, after executing the `jupyter book` command you will be prompt to install it
45+
```
46+
# Download and install nvm:
47+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
48+
49+
# in lieu of restarting the shell
50+
\. "$HOME/.nvm/nvm.sh"
51+
52+
# Download and install Node.js:
53+
nvm install 24
54+
55+
# Verify the Node.js version:
56+
node -v # Should print "v24.2.0".
57+
nvm current # Should print "v24.2.0".
58+
59+
# Verify npm version:
60+
npm -v # Should print "11.3.0".
61+
62+
# Update a new patch version of npm
63+
npm install -g npm@11.4.2
64+
```
4165

4266
## Usage
4367
You will move to the selected directory and clone this GitHub repository to create a local copy on your computer

0 commit comments

Comments
 (0)