Skip to content

Commit

Permalink
Replaced conda for package installs due to persistent problems
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJBianco committed Jul 19, 2021
1 parent bc9cfe1 commit 3436df9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1,734 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ LABEL maintainer="The ThreatHunting Project <project@threathunting.net>"
USER $NB_USER

# Install Python packages.
ENV INSTALL_PACKAGES_CONDA plotly elasticsearch-dsl seaborn scikit-learn ipywidgets tqdm requests dask pyspark
ENV INSTALL_PACKAGES_PIP splunk-sdk huntlib
#ENV INSTALL_PACKAGES_CONDA plotly elasticsearch-dsl seaborn scikit-learn ipywidgets tqdm requests dask pyspark
#ENV INSTALL_PACKAGES_PIP splunk-sdk huntlib
ENV INSTALL_PACKAGES_PIP plotly elasticsearch-dsl seaborn scikit-learn ipywidgets tqdm requests dask pyspark splunk-sdk huntlib

RUN conda install -y jupyter_contrib_nbextensions ${INSTALL_PACKAGES_CONDA} && \
pip install --upgrade ${INSTALL_PACKAGES_PIP}
#RUN conda install -y jupyter_contrib_nbextensions ${INSTALL_PACKAGES_CONDA} && \
# pip install --upgrade ${INSTALL_PACKAGES_PIP}
RUN pip install jupyter_contrib_nbextensions ${INSTALL_PACKAGES_PIP}

# Set up some Jupyter Notebook extensions
RUN jupyter nbextension enable toc2/main && \
Expand Down
20 changes: 6 additions & 14 deletions Test-spark.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 0,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 0,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 0,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -65,17 +65,9 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 0,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Pi is roughly 3.141967\n"
]
}
],
"outputs": [],
"source": [
"def inside(p):\n",
" x, y = random.random(), random.random()\n",
Expand Down Expand Up @@ -108,4 +100,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
Loading

0 comments on commit 3436df9

Please sign in to comment.