Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
e736784a
Commit
e736784a
authored
Jun 29, 2016
by
Peter Parente
Committed by
GitHub
Jun 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #226 from minrk/scipy-pyspark
inherit pyspark from scipy-notebook
parents
dd0b2ed8
f30a9a3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
43 deletions
+2
-43
README.md
README.md
+1
-1
internal/inherit-diagram.png
internal/inherit-diagram.png
+0
-0
pyspark-notebook/Dockerfile
pyspark-notebook/Dockerfile
+1
-42
No files found.
README.md
View file @
e736784a
...
@@ -25,7 +25,7 @@ If this is your first time using Docker or any of the Jupyter projects, do the f
...
@@ -25,7 +25,7 @@ If this is your first time using Docker or any of the Jupyter projects, do the f
Here's a diagram of the
`FROM`
relationships between all of the images defined in this project:
Here's a diagram of the
`FROM`
relationships between all of the images defined in this project:
[

](http://interactive.blockdiag.com/
?compression=deflate&src=eJyFzLEOwjAMRdGdr7C6d0dURXRjZ0QIOY2LTNM4SsxQEP9Ow5YuXe87tnHSj5bxAZ8dgEQmr6gsHloIEjUia7MslgZ8Ob0P4jXxm5Z5n3sHV4eGXFtZMoz-8KSUmE6Xc1fdmt1f1EcwmKj2omRExnxXhCwm9jyhK9C6ZZd6DnOhypKNRcWlku9p81_cFGFOAeNYuHXLDp2r1_L7A-hzeKU
)
[

](http://interactive.blockdiag.com/
image?compression=deflate&encoding=base64&src=eJyFzLEOwjAMRdGdr7C6d0dURXRjZ0QIOY2LTNM4SsxQEP9Ow5YuXe87tnHSj5bxAZ8dgEQmr6gsHloIEjUia7MslgZ8Ob0P4jXxm5Z5n3sHV4eGXFtZMoz-8KSUmE6Xc1fdmt1f1EcwmKj2omRExnxXhCwm9jyhK9C6ZZd6DnOhypKNRcWlku9p81_c-BXmFDCOhVq37NC5ei2_P_VBd-Y
)
## Stacks, Tags, Versioning, and Progress
## Stacks, Tags, Versioning, and Progress
...
...
internal/inherit-diagram.png
View replaced file @
dd0b2ed8
View file @
e736784a
20.4 KB
|
W:
|
H:
66.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
pyspark-notebook/Dockerfile
View file @
e736784a
# Copyright (c) Jupyter Development Team.
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# Distributed under the terms of the Modified BSD License.
FROM
jupyter/
minimal
-notebook
FROM
jupyter/
scipy
-notebook
MAINTAINER
Jupyter Project <jupyter@googlegroups.com>
MAINTAINER
Jupyter Project <jupyter@googlegroups.com>
...
@@ -40,44 +40,3 @@ ENV MESOS_NATIVE_LIBRARY /usr/local/lib/libmesos.so
...
@@ -40,44 +40,3 @@ ENV MESOS_NATIVE_LIBRARY /usr/local/lib/libmesos.so
ENV
SPARK_OPTS --driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M --driver-java-options=-Dlog4j.logLevel=info
ENV
SPARK_OPTS --driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M --driver-java-options=-Dlog4j.logLevel=info
USER
$NB_USER
USER
$NB_USER
# Install Python 3 packages
RUN
conda
install
--quiet
--yes
\
'ipywidgets=5.1*'
\
'pandas=0.17*'
\
'numexpr=2.5*'
\
'matplotlib=1.5*'
\
'scipy=0.17*'
\
'seaborn=0.7*'
\
'scikit-learn=0.17*'
\
jq
\
&&
conda clean
-tipsy
# Activate ipywidgets extension in the environment that runs the notebook server
RUN
jupyter nbextension
enable
--py
widgetsnbextension
--sys-prefix
# Install Python 2 packages and kernel spec
RUN
conda create
--quiet
--yes
-p
$CONDA_DIR
/envs/python2
python
=
2.7
\
'ipython=4.2*'
\
'ipywidgets=5.1*'
\
'pandas=0.17*'
\
'numexpr=2.5*'
\
'matplotlib=1.5*'
\
'scipy=0.17*'
\
'seaborn=0.7*'
\
'scikit-learn=0.17*'
\
pyzmq
\
&&
conda clean
-tipsy
# Add shortcuts to distinguish pip for python2 and python3 envs
RUN
ln
-s
$CONDA_DIR
/envs/python2/bin/pip
$CONDA_DIR
/bin/pip2
&&
\
ln
-s
$CONDA_DIR
/bin/pip
$CONDA_DIR
/bin/pip3
# Install Python 2 kernel spec into the Python 3 conda environment which
# runs the notebook server
RUN
bash
-c
'. activate python2 &&
\
python -m ipykernel.kernelspec --prefix=$CONDA_DIR &&
\
. deactivate'
# Set PYSPARK_HOME in the python2 spec
RUN
jq
--arg
v
"
$CONDA_DIR
/envs/python2/bin/python"
\
'.["env"]["PYSPARK_PYTHON"]=$v'
\
$CONDA_DIR
/share/jupyter/kernels/python2/kernel.json
>
/tmp/kernel.json
&&
\
mv
/tmp/kernel.json
$CONDA_DIR
/share/jupyter/kernels/python2/kernel.json
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment