generated from nlpsandbox/i2b2-phi-dataset
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Started adding jupyter * Add docker-entrypoint.sh * Can start jupyter but permission issues * Finalize setu * Update README * Update versions * Update README
- Loading branch information
1 parent
a84a0ff
commit 26b194c
Showing
12 changed files
with
152 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
# RStudio | ||
USER=rstudio | ||
# NLP Sandbox Notebooks image version | ||
IMAGE_VERSION=0.2.0 | ||
|
||
# User created when the container starts. | ||
# Those are the credentials to log in RStudio | ||
USERNAME=nlp | ||
PASSWORD=changeme | ||
USERID=1000 | ||
GROUPID=1000 | ||
ROOT=FALSE | ||
|
||
# Synapse | ||
SYNAPSE_TOKEN=yourtoken | ||
# Notebook IDE ("rstudio" or "jupyter") | ||
IDE=rstudio | ||
|
||
# Port on the host that connects to the IDE | ||
HOST_RSTUDIO_PORT=8787 | ||
HOST_JUPYTER_PORT=8888 | ||
|
||
# Port on the host that connects to RStudio | ||
HOST_PORT=80 | ||
# Synapse settings | ||
SYNAPSE_TOKEN= | ||
|
||
# User-specified settings made visible to RStudio (APP_*) | ||
# User-specified variables visible to RStudio (must start with "APP_") | ||
APP_NLPSANDBOX_SCHEMAS_VERSION=1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
challengeutils==4.0.1 | ||
jupyterlab==3.2.1 | ||
nlpsandbox-client==4.0.0 | ||
pandas==1.2.4 | ||
synapseclient==2.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ "$1" = 'rstudio' ]; then | ||
# RStudio userconf.sh script runs RStudio as $USER | ||
exec /init | ||
elif [ "$1" = 'jupyter' ]; then | ||
# /init takes care of creating $USER. It also starts RStudio. | ||
exec /init gosu $USER /opt/miniconda/envs/nlpsandbox/bin/jupyter-lab \ | ||
--notebook-dir /home/${USER}/nlpsandbox \ | ||
--port=8888 \ | ||
--no-browser \ | ||
--ip=0.0.0.0 | ||
fi | ||
|
||
exec /init gosu $USER "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.ipynb_checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 3, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Hello World\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print('Hello World')" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"interpreter": { | ||
"hash": "93e7f2dcfb01f6655e7a9697237dee78452e308af71dd1cd67063cb7230fb558" | ||
}, | ||
"kernelspec": { | ||
"display_name": "Python 3.9.4 64-bit ('phi-deidentifier': conda)", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.4" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.