Skip to content

Commit 4aaf61d

Browse files
committed
fix jupyter error
Signed-off-by: Lance-Drane <[email protected]>
1 parent 6d3461b commit 4aaf61d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PYTHONPATH=$PWD PSCRATCH=${PSCRATCH:-/tmp} EXAMPLE_DELAY=true ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
1+
#!/bin/sh
2+
PYTHONPATH=$(dirname "$0") PSCRATCH=${PSCRATCH:-/tmp} EXAMPLE_DELAY=true ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
PYTHONPATH=$PWD PSCRATCH=${PSCRATCH:-/tmp} ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
1+
#!/bin/sh
2+
PYTHONPATH=$(dirname "$0") PSCRATCH=${PSCRATCH:-/tmp} ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose

ipsframework/_jupyter/initializer.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ def _jupyter_notebook_api_code() -> bytes:
9595
"\n",
9696
"widget2.on_click(generate_tarfile)\n",
9797
"\n",
98-
"display(widget1,widget2,HTML(\"\"\"<style>\n",
98+
"display(widget1,widget2,HTML('''<style>\n",
9999
" .widget-label { width: unset !important; }\n",
100-
"</style>\"\"\"))"
100+
"</style>'''))"
101101
]
102102
}
103103
],
@@ -123,7 +123,6 @@ def initialize_jupyter_python_api(jupyterhub_dir: str):
123123
dest_dir / python_fname,
124124
)
125125

126-
127126
with open(dest_dir / f'api_{CURRENT_API_VERSION}_notebook.ipynb', 'wb') as f:
128127
f.write(_jupyter_notebook_api_code())
129128

0 commit comments

Comments
 (0)