Skip to content

Commit

Permalink
Fix issue with markupsafe which breaks nbconvert and thus the website (
Browse files Browse the repository at this point in the history
…#281)

The latest version of markupsafe removed `soft_unicode` which is
used by jupyter's nbconvert.
Therefore, we hardcode the markupsafe version which still contains the
symbol.
  • Loading branch information
LukasBreitwieser authored Oct 5, 2022
1 parent a5c009e commit 5fa1bad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/user_guide/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.1

```bash
pyenv shell 3.9.1
python -m pip install nbformat jupyter metakernel jupyterlab
python -m pip install markupsafe==2.0.1 jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6
sudo apt-get install -y valgrind \
clang-format clang-tidy \
doxygen graphviz libxml2-dev libgsl-dev
Expand Down Expand Up @@ -189,7 +189,7 @@ PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.9.1

```bash
pyenv shell 3.9.1
python -m pip install nbformat jupyter metakernel jupyterlab
python -m pip install markupsafe==2.0.1 nbformat jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6
# SBML integration
sudo bash -c 'cat << EOF > /etc/yum.repos.d/springdale-7-SCL.repo
[SCL-core]
Expand Down Expand Up @@ -249,5 +249,5 @@ brew install libomp open-mpi python@3.9 wget cmake ninja bash tbb qt@5

```bash
brew install doxygen graphviz kcov gsl
python3 -m pip install nbformat jupyter metakernel jupyterlab
python3 -m pip install markupsafe==2.0.1 nbformat jupyter metakernel jupyterlab jinja2==3.0
```
2 changes: 1 addition & 1 deletion util/installation/centos-7/prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pyenv shell $PYVERS

# Install optional packages
if [ $1 == "all" ]; then
PIP_PACKAGES="nbformat jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6"
PIP_PACKAGES="markupsafe==2.0.1 nbformat jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6"
# Don't install --user: the packages should end up in the PYENV_ROOT directory
python -m pip install $PIP_PACKAGES
# SBML integration
Expand Down
2 changes: 1 addition & 1 deletion util/installation/osx/prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ brew install \
if [ $1 == "all" ]; then
# Fix jinja2 version because of failing build target `notebooks` on
# macOS System CI.
PIP_PACKAGES="nbformat jupyter metakernel jupyterlab jinja2==3.0"
PIP_PACKAGES="markupsafe==2.0.1 nbformat jupyter metakernel jupyterlab jinja2==3.0"
# Don't install --user: the packages should end up in the PYENV_ROOT directory
python3.9 -m pip install $PIP_PACKAGES
brew install \
Expand Down
2 changes: 1 addition & 1 deletion util/installation/ubuntu-18.04/prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pyenv shell $PYVERS
# Install optional packages
if [ $1 == "all" ]; then
# this updates pip, but installs the updated version in $HOME/.local/bin
PIP_PACKAGES="jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6"
PIP_PACKAGES="markupsafe==2.0.1 jupyter metakernel jupyterlab nbformat==5.4.0 nbconvert==6.5.3 nbclient==0.6.6"
# Don't install --user: the packages should end up in the PYENV_ROOT directory
python -m pip install $PIP_PACKAGES

Expand Down

0 comments on commit 5fa1bad

Please sign in to comment.