Skip to content

Commit

Permalink
Adding an extra check to also incorporate Jupyter Lab as well as Jupy…
Browse files Browse the repository at this point in the history
…ter Notebook
  • Loading branch information
neomatrix369 committed Nov 21, 2019
1 parent 883132b commit 7084088
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/JuPyteR/runDockerContainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if [[ "${DEBUG}" = "false" ]]; then
echo ""; echo "Displaying the missed log messages for container ${CONTAINER_ID}"
docker logs ${CONTAINER_ID}
echo ""; echo "Scanning logs of container ${CONTAINER_ID} for Jupyter notebook url"
RAW_URL="$(docker logs ${CONTAINER_ID} | grep -v "NotebookApp" | grep "token=" || true)"
RAW_URL="$(docker logs ${CONTAINER_ID} | grep -v "NotebookApp" | grep -v "LabApp" | grep "token=" || true)"
echo ""; echo "Found some URL, extracting real url from it..."
URL=$(echo ${RAW_URL} | awk '{print $3}' | tr -d ')' || true)
URL="http://${URL}"
Expand Down
15 changes: 15 additions & 0 deletions examples/JuPyteR/tmp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[I 09:36:40.987 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab
[I 09:36:40.988 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[W 09:36:40.989 LabApp] JupyterLab server extension not enabled, manually loading...
[I 09:36:40.994 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab
[I 09:36:40.995 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 09:36:40.995 LabApp] Serving notebooks from local directory: /home/jovyan
[I 09:36:40.995 LabApp] The Jupyter Notebook is running at:
[I 09:36:40.995 LabApp] http://(bef475be720b or 127.0.0.1):8888/?token=ad0accf2278fdc023852c1d6ce37eca0e688865708650a9d
[I 09:36:40.995 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 09:36:41.000 LabApp]

To access the notebook, open this file in a browser:
file:///home/jovyan/.local/share/jupyter/runtime/nbserver-7-open.html
Or copy and paste one of these URLs:
http://(bef475be720b or 127.0.0.1):8888/?token=ad0accf2278fdc023852c1d6ce37eca0e688865708650a9d

0 comments on commit 7084088

Please sign in to comment.