Skip to content

Commit cb046b5

Browse files
committed
Merge branch 'master' into example
2 parents ff341a1 + e1b4ce4 commit cb046b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4520
-4401
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Jupyter Server Tests
22
on:
33
push:
44
branches:
@@ -12,7 +12,7 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
15-
python-version: [ '3.6', '3.7', '3.8' ]
15+
python-version: [ '3.5', '3.6', '3.7', '3.8' ]
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v1
@@ -24,6 +24,10 @@ jobs:
2424
- name: Install the Python dependencies
2525
run: |
2626
pip install -e .[test]
27+
- name: ipykernel fix on windows 3.8
28+
if: matrix.os == 'windows-latest' && matrix.python-version == '3.8'
29+
run: |
30+
pip install --upgrade git+https://github.com/ipython/ipykernel.git
2731
- name: Run the tests
2832
run: |
29-
nosetests -v jupyter_server
33+
pytest

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ script:
3737
else
3838
true
3939
fi
40-
- 'if [[ $GROUP == python ]]; then nosetests -v jupyter_server; fi'
40+
- 'if [[ $GROUP == python ]]; then pytest; fi'
4141
- |
4242
if [[ $GROUP == docs ]]; then
4343
EXIT_STATUS=0
@@ -52,12 +52,16 @@ script:
5252
5353
matrix:
5454
include:
55+
- python: 3.5
56+
env: GROUP=python
5557
- python: 3.6
5658
env: GROUP=python
5759
- python: 3.7
5860
env: GROUP=python
5961
- python: 3.8
6062
env: GROUP=python
63+
- python: 3.5
64+
env: GROUP=docs
6165
- python: 3.6
6266
env: GROUP=docs
6367
- python: 3.7

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Jupyter Server
22

33
[![Google Group](https://img.shields.io/badge/-Google%20Group-lightgrey.svg)](https://groups.google.com/forum/#!forum/jupyter)
4-
[![Build Status](https://travis-ci.org/jupyter/jupyter_server.svg?branch=master)](https://travis-ci.org/jupyter/jupyter_server)
4+
[![Build Status](https://github.com/jupyter/jupyter_server/workflows/CI/badge.svg)](https://github.com/jupyter/jupyter_server/actions)
55
[![Documentation Status](https://readthedocs.org/projects/jupyter-server/badge/?version=latest)](http://jupyter-server.readthedocs.io/en/latest/?badge=latest)
66

77
The Jupyter Server provides the backend for Jupyter web applications such as

appveyor.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ matrix:
44

55
environment:
66
matrix:
7+
- CONDA_PY: 35
8+
CONDA_PY_SPEC: 3.5
9+
CONDA_INSTALL_LOCN: "C:\\Miniconda35-x64"
710
- CONDA_PY: 36
11+
CONDA_PY_SPEC: 3.6
812
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
913
- CONDA_PY: 37
10-
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
14+
CONDA_PY_SPEC: 3.7
15+
CONDA_INSTALL_LOCN: "C:\\Miniconda37-x64"
1116
- CONDA_PY: 38
12-
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
17+
CONDA_PY_SPEC: 3.8
18+
# appveyor doesn't come with this directory, so use 37's since we're creating an env anyway
19+
CONDA_INSTALL_LOCN: "C:\\Miniconda37-x64"
1320

1421
platform:
1522
- x64
@@ -18,11 +25,17 @@ build: off
1825

1926
install:
2027
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
28+
- cmd: set CONDA_PY=%CONDA_PY%
29+
- cmd: set CONDA_PY_SPEC=%CONDA_PY_SPEC%
2130
- cmd: conda config --set show_channel_urls true
2231
- cmd: conda config --add channels conda-forge
23-
#- cmd: conda update --yes --quiet conda
24-
- cmd: conda install -y pyzmq tornado jupyter_client nbformat nbconvert ipykernel pip nose
32+
- cmd: conda update --yes --quiet conda
33+
- cmd: conda info -a
34+
- cmd: conda create -y -q -n test-env-%CONDA_PY% python=%CONDA_PY_SPEC% pyzmq tornado jupyter_client nbformat nbconvert ipykernel pip nose
35+
- cmd: conda activate test-env-%CONDA_PY%
2536
- cmd: pip install .[test]
37+
# FIXME: Use patch for python 3.8, windows issues (https://github.com/ipython/ipykernel/pull/456) - remove once released
38+
- IF %CONDA_PY% == 38 pip install --upgrade git+https://github.com/ipython/ipykernel.git
2639

2740
test_script:
28-
- nosetests -v jupyter_server --exclude-dir jupyter_server\tests\selenium
41+
- pytest

docs/source/changelog.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,19 @@ We strongly recommend that you upgrade to version 9+ of pip before upgrading ``j
2121
Use ``pip install pip --upgrade`` to upgrade pip. Check pip version with
2222
``pip --version``.
2323

24+
.. _release-0.0.2:
25+
26+
0.0.2
27+
-----
28+
29+
- Introduce new extension module
30+
- Pytest for unit tests
31+
- Server documentation
32+
- NbClassic for migration from notebook
33+
2434
.. _release-0.0.1:
2535

2636
0.0.1
2737
-----
2838

29-
First release of the Jupyter Server.
39+
- First release of the Jupyter Server.

docs/source/frontends.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,9 @@ To make your frontend executable from anywhere on your system, added this method
131131
]
132132
}
133133
)
134+
135+
Examples
136+
--------
137+
138+
You can check some simple example on the `GitHub jupyter_server repository
139+
<https://github.com/jupyter/jupyter_server/tree/master/jupyter_server/example/simple>`_.

docs/source/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ To install the latest release of ``jupyter_server``, use *pip*:
3232
:caption: Configuration
3333

3434
config_overview
35-
config.rst
35+
config
36+
migrate_from_notebook
3637
public_server
3738
security
3839
extending/index.rst

docs/source/migrate_from_notebook.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. _migrate_from_notebook:
2+
3+
Migrate from Notebook
4+
=====================
5+
6+
To migrate from notebook server to plain jupyter server, follow these steps:
7+
8+
- Rename your ``jupyter_notebook_config.py`` file to ``jupyter_server_config.py``.
9+
- Rename all ``c.NotebookApp`` traits to ``c.ServerApp``.
10+
11+
For example if you have the following ``jupyter_notebook_config.py``.
12+
13+
.. code-block:: python
14+
15+
c.NotebookApp.allow_credentials = False
16+
c.NotebookApp.port = 8889
17+
c.NotebookApp.password_required = True
18+
19+
20+
You will have to create the following ``jupyter_server_config.py`` file.
21+
22+
.. code-block:: python
23+
24+
c.ServerApp.allow_credentials = False
25+
c.ServerApp.port = 8889
26+
c.ServerApp.password_required = True

jupyter_server/auth/tests/test_security.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

jupyter_server/extension/tests/test_extension.py

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)