We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f26c31 commit 67f82c8Copy full SHA for 67f82c8
scripts/start-server.sh
@@ -1,7 +1,9 @@
1
#!/usr/bin/env bash
2
3
# Convenience script to start a Jupyter notebook server in a self-contained
4
-# virtualenv.
+# virtualenv. Additional `jupyter notebook` options may be passed when running
5
+# the command, for example `./scripts/start-server.sh --ip xx.local` to expose
6
+# the server on the local network.
7
8
set -o nounset
9
set -o errexit
@@ -10,7 +12,7 @@ shopt -s nullglob
10
12
11
13
__dirname="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
14
-main() {
15
+main() { # [...]
16
cd "$__dirname/.."
17
if [ -d venv ]; then
18
. venv/bin/activate
@@ -20,7 +22,7 @@ main() {
20
22
fi
21
23
pip install jupyter
24
pip install -r requirements.txt
- jupyter notebook resources
25
+ jupyter notebook resources "$@"
26
}
27
28
main "$@"
0 commit comments