Skip to content

Commit

Permalink
Use conda to install Jupyter Notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Apr 24, 2023
1 parent 9a024fe commit 6c47ca0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,16 @@ jobs:
shell: bash -l {0}
run: |
python .github/scripts/generate-without-spyder.py
mamba install --file requirements/without-spyder.txt -y
mamba install -c conda-forge/label/notebook_beta -c conda-forge/label/jupyterlab_beta --file requirements/without-spyder.txt -y
- name: Install plugin dependencies
if: matrix.SPYDER_SOURCE == 'conda'
shell: bash -l {0}
run: mamba install --file requirements/conda.txt -y
run: mamba install -c conda-forge/label/notebook_beta -c conda-forge/label/jupyterlab_beta --file requirements/conda.txt -y
- name: Install test dependencies
shell: bash -l {0}
run: |
mamba install nomkl -y -q
mamba install --file requirements/tests.txt -y
- name: Install Jupyter Notebook using pip
shell: bash -l {0}
run: python -m pip install notebook==7.0.0b0 jupyterlab==4.0.0b1 --pre
- name: Build JavaScript
shell: bash -l {0}
run: |
Expand Down
10 changes: 4 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,15 @@ $ conda install --file requirements/conda.txt
```

**For version 0.5.0-alpha of the plugin:** The plugin is based on
Jupyter Notebook 7, which is only available as an alpha release on
PyPI. So in addition, we need to install it with pip usig the
Jupyter Notebook 7, which at the moment is only available as a beta
release. While that is the case, you should explicitly allow the
installation of beta releases of Jupyter Lab and Notebook as in the
following command:

```bash
$ python -m pip install notebook --pre
$ conda install -c conda-forge/label/notebook_beta -c conda-forge/label/jupyterlab_beta --file requirements/conda.txt
```

Cross your fingers that the mixing of pip and conda does not
cause any problems!

### Building the notebook server

The Spyder notebook plugin includes a server which serves notebooks as HTML
Expand Down
2 changes: 1 addition & 1 deletion requirements/conda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spyder >=5.4.3,<6
jupyter_core
jupyter_server
nbformat
# notebook >=7 - can only be installed with pip
notebook >=7.0.0b0
qtpy
qdarkstyle
requests
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run(self):
REQUIREMENTS = [
'spyder>=5.4.3,<6',
'nbformat',
'notebook>=7',
'notebook>=7.0.0b0',
'qtpy',
'qdarkstyle',
'requests',
Expand Down

0 comments on commit 6c47ca0

Please sign in to comment.