Skip to content

Commit

Permalink
Add nteract jupyter extension to requirements.txt based setups
Browse files Browse the repository at this point in the history
Didn't add to conda, since there is currently no way to add
pip packages to our conda frozen setup (due to
conda/conda#6438).

This means nteract will be available only when used with
requirement.txt, and not when used with environment.yml files.
  • Loading branch information
yuvipanda committed Feb 1, 2018
1 parent f587a77 commit 89ac724
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
3 changes: 2 additions & 1 deletion repo2docker/buildpacks/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def get_build_scripts(self):
r"""
pip install --no-cache-dir -r /tmp/requirements.frozen.txt && \
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
jupyter serverextension enable --py jupyterlab --sys-prefix
jupyter serverextension enable --py jupyterlab --sys-prefix && \
jupyter serverextension enable nteract_on_jupyter --sys-prefix
"""
)
]
Expand Down
13 changes: 7 additions & 6 deletions repo2docker/buildpacks/python/requirements.frozen.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# AUTO GENERATED FROM requirements.txt, DO NOT MANUALLY MODIFY
# Frozen on Sat Dec 16 22:12:51 UTC 2017
# Frozen on Wed Jan 31 21:54:41 UTC 2018
bleach==2.1.2
decorator==4.1.2
decorator==4.2.1
entrypoints==0.2.3
html5lib==1.0.1
ipykernel==4.7.0
ipykernel==4.8.0
ipython-genutils==0.2.0
ipython==6.2.1
ipywidgets==6.0.1
jedi==0.11.1
Jinja2==2.10
jsonschema==2.6.0
jupyter-client==5.1.0
jupyter-client==5.2.2
jupyter-core==4.4.0
jupyterlab-launcher==0.6.0
jupyterlab==0.30.6
Expand All @@ -20,6 +20,7 @@ mistune==0.8.3
nbconvert==5.3.1
nbformat==4.4.0
notebook==5.2.2
nteract-on-jupyter==1.3.1
pandocfilters==1.4.2
parso==0.1.1
pexpect==4.3.1
Expand All @@ -28,12 +29,12 @@ prompt-toolkit==1.0.15
ptyprocess==0.5.2
Pygments==2.2.0
python-dateutil==2.6.1
pyzmq==16.0.3
pyzmq==16.0.4
simplegeneric==0.8.1
six==1.11.0
terminado==0.8.1
testpath==0.3.1
tornado==4.5.2
tornado==4.5.3
traitlets==4.3.2
wcwidth==0.1.7
webencodings==0.5.1
Expand Down
1 change: 1 addition & 0 deletions repo2docker/buildpacks/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
notebook==5.2.2
ipywidgets==6.0.1
jupyterlab==0.30.6
nteract_on_jupyter==1.3.1
12 changes: 6 additions & 6 deletions repo2docker/buildpacks/python/requirements2.frozen.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# AUTO GENERATED FROM requirements2.txt, DO NOT MANUALLY MODIFY
# Frozen on Sat Dec 16 22:13:15 UTC 2017
# Frozen on Wed Jan 31 21:55:07 UTC 2018
backports-abc==0.5
backports.shutil-get-terminal-size==1.0.0
certifi==2017.11.5
decorator==4.1.2
certifi==2018.1.18
decorator==4.2.1
enum34==1.1.6
ipykernel==4.6.1
ipython-genutils==0.2.0
ipython==5.5.0
jupyter-client==5.1.0
jupyter-client==5.2.2
jupyter-core==4.4.0
pathlib2==2.3.0
pexpect==4.3.1
Expand All @@ -17,11 +17,11 @@ prompt-toolkit==1.0.15
ptyprocess==0.5.2
Pygments==2.2.0
python-dateutil==2.6.1
pyzmq==16.0.3
pyzmq==16.0.4
scandir==1.6
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.11.0
tornado==4.5.2
tornado==4.5.3
traitlets==4.3.2
wcwidth==0.1.7

0 comments on commit 89ac724

Please sign in to comment.