Skip to content

Commit 4c5d6f6

Browse files
authored
Merge pull request #1281 from Patil2099/master
Demos using Python3
2 parents ff3b948 + 86f0284 commit 4c5d6f6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

demos/demo_multiple_classes/setup_demo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ setup_demo () {
2525
make_user student1
2626

2727
# Install global nbgrader config file.
28+
mkdir -p /etc/jupyter/
2829
cp global_nbgrader_config.py /etc/jupyter/nbgrader_config.py
2930

3031
local courses=(course101 course123)

demos/restart_demo.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ source utils.sh
2323

2424
install_dependencies () {
2525
echo "Installing dependencies..."
26-
pip install -U pip
27-
pip install -U jupyter
28-
pip install -U jupyterhub
26+
apt install -y npm
27+
npm install -g configurable-http-proxy
28+
apt install -y python3-pip
29+
pip3 install -U jupyter
30+
pip3 install -U jupyterhub
2931
}
3032

3133
install_nbgrader () {
@@ -47,7 +49,7 @@ install_nbgrader () {
4749
git pull
4850

4951
# Install requirements and nbgrader.
50-
pip install -U -r requirements.txt -e .
52+
pip3 install -U -r requirements.txt -e .
5153

5254
# Install global extensions, and disable them globally. We will re-enable
5355
# specific ones for different user accounts in each demo.

0 commit comments

Comments
 (0)