Skip to content

Commit

Permalink
fix jupyter error
Browse files Browse the repository at this point in the history
Signed-off-by: Lance-Drane <[email protected]>
  • Loading branch information
Lance-Drane committed Oct 21, 2024
1 parent 6d3461b commit 4aaf61d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples-proposed/004-time-loop/run-delayed.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PYTHONPATH=$PWD PSCRATCH=${PSCRATCH:-/tmp} EXAMPLE_DELAY=true ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
#!/bin/sh
PYTHONPATH=$(dirname "$0") PSCRATCH=${PSCRATCH:-/tmp} EXAMPLE_DELAY=true ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
3 changes: 2 additions & 1 deletion examples-proposed/004-time-loop/run.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PYTHONPATH=$PWD PSCRATCH=${PSCRATCH:-/tmp} ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
#!/bin/sh
PYTHONPATH=$(dirname "$0") PSCRATCH=${PSCRATCH:-/tmp} ips.py --config=sim.conf --platform=platform.conf --log=ips.log #--debug --verbose
5 changes: 2 additions & 3 deletions ipsframework/_jupyter/initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def _jupyter_notebook_api_code() -> bytes:
"\n",
"widget2.on_click(generate_tarfile)\n",
"\n",
"display(widget1,widget2,HTML(\"\"\"<style>\n",
"display(widget1,widget2,HTML('''<style>\n",
" .widget-label { width: unset !important; }\n",
"</style>\"\"\"))"
"</style>'''))"
]
}
],
Expand All @@ -123,7 +123,6 @@ def initialize_jupyter_python_api(jupyterhub_dir: str):
dest_dir / python_fname,
)


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

Expand Down

0 comments on commit 4aaf61d

Please sign in to comment.