forked from MetaCell/NetPyNE-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
23 lines (18 loc) · 618 Bytes
/
run.py
File metadata and controls
23 lines (18 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Run this to debug
"""
import sys
import os
from notebook.notebookapp import NotebookApp
from jupyter_geppetto import settings
os.environ['JUPYTER_CONFIG_DIR'] = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.jupyter-config')
settings.debug = True
if __name__ == '__main__':
sys.argv.append('--NotebookApp.default_url=/geppetto')
sys.argv.append("--NotebookApp.token=''")
sys.argv.append('--library=netpyne_ui')
sys.argv.append('--NotebookApp.disable_check_xsrf=True')
app = NotebookApp.instance()
app.initialize(sys.argv)
app.file_to_run = ''
sys.exit(app.start())