@@ -54,13 +54,52 @@ if [ ! -d ".venv" ]; then
5454 echo " Creating virtualenv..."
5555 ${PYTHON:- python3} -m venv .venv
5656
57- # Install sphinx, matplotlib, pandas, scipy, wheel and pydoctor into the venv.
57+ # Install sphinx, matplotlib, pandas, scipy, wheel, pydoctor, nbsphinx, pandoc, sphinx-design, ipython and ipywidgets into the venv.
5858 # doc2dash is optional; it will be installed when -d is given
59- .venv/bin/pip install -q -U pip wheel sphinx==7.4.7 matplotlib pandas scipy pydoctor sphinx-rtd-theme
59+ .venv/bin/pip install -q -U pip wheel sphinx==7.4.7 matplotlib pandas scipy pydoctor sphinx-rtd-theme nbsphinx pandoc sphinx-design ipython ipywidgets
6060else
6161 # Upgrade pip in the virtualenv
6262 echo " Upgrading pip in virtualenv..."
6363 .venv/bin/pip install -q -U pip wheel
64+
65+ # Check if nbsphinx is installed and install it if not
66+ echo " Checking for nbsphinx, pandoc, sphinx-design and ipython..."
67+ if ! .venv/bin/pip show nbsphinx > /dev/null 2>&1 ; then
68+ echo " nbsphinx not found. Installing..."
69+ .venv/bin/pip install -q nbsphinx
70+ else
71+ echo " nbsphinx is already installed."
72+ fi
73+
74+ if ! .venv/bin/pip show pandoc > /dev/null 2>&1 ; then
75+ echo " pandoc not found. Installing..."
76+ .venv/bin/pip install -q pandoc
77+ else
78+ echo " pandoc is already installed."
79+ fi
80+
81+ if ! .venv/bin/pip show sphinx-design > /dev/null 2>&1 ; then
82+ echo " sphinx-design not found. Installing..."
83+ .venv/bin/pip install -q sphinx-design
84+ else
85+ echo " sphinx-design is already installed."
86+ fi
87+
88+ if ! .venv/bin/pip show ipython > /dev/null 2>&1 ; then
89+ echo " ipython not found. Installing..."
90+ .venv/bin/pip install -q ipython
91+ else
92+ echo " ipython is already installed."
93+ fi
94+
95+ if ! .venv/bin/pip show ipywidgets > /dev/null 2>&1 ; then
96+ echo " ipywidgets not found. Installing..."
97+ .venv/bin/pip install -q ipywidgets
98+ else
99+ echo " ipywidgets is already installed."
100+ fi
101+
102+
64103fi
65104
66105# Make sure that Sphinx, PyDoctor (and maybe doc2dash) are up-to-date in the virtualenv
0 commit comments