-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathantifasc.ps1
More file actions
26 lines (25 loc) · 803 Bytes
/
Copy pathantifasc.ps1
File metadata and controls
26 lines (25 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#$MODE = $args[0]
$MODE = if ($args.Count -gt 0) { $args[0] } else { "" }
if ($MODE -eq "notebook") {
docker run --rm -it `
-e HOME=/tmp `
-e JUPYTER_RUNTIME_DIR=/tmp/jupyter-runtime `
-e JUPYTER_DATA_DIR=/tmp/jupyter-data `
-e JUPYTER_CONFIG_DIR=/tmp/jupyter-config `
-e MPLCONFIGDIR=/tmp/matplotlib `
-p 8888:8888 `
-v "${PWD}:/app" `
pyantifasc `
conda run --no-capture-output -n antifasc jupyter lab `
--ip=0.0.0.0 --port=8888 --no-browser `
--notebook-dir=/app `
--allow-root
}
else {
docker run --rm -it `
-e MPLCONFIGDIR=/tmp/matplotlib `
-v "${PWD}:/app" `
-w /app/bin `
pyantifasc `
conda run --no-capture-output -n antifasc python antifasc_main.py $args
}