rsnt_translations
56,420
edits
No edit summary |
(Marked this version for translation) |
||
Line 391: | Line 391: | ||
Please see [[Jupyter]]. | Please see [[Jupyter]]. | ||
== Troubleshooting == | == Troubleshooting == <!--T:72--> | ||
=== Python script is hanging === | === Python script is hanging === <!--T:73--> | ||
<!--T:74--> | |||
By using the [https://docs.python.org/3.8/library/faulthandler.html faulthandler] module, you can edit your script to allow dumping a traceback after a timeout. See <code>faulthandler.dump_traceback_later()</code>. | By using the [https://docs.python.org/3.8/library/faulthandler.html faulthandler] module, you can edit your script to allow dumping a traceback after a timeout. See <code>faulthandler.dump_traceback_later()</code>. | ||
<!--T:75--> | |||
You can also inspect a python process while the job is running, without modifying it beforehand, using [https://pythonrepo.com/repo/benfred-py-spy-python-debugging-tools py-spy]: | You can also inspect a python process while the job is running, without modifying it beforehand, using [https://pythonrepo.com/repo/benfred-py-spy-python-debugging-tools py-spy]: | ||
<!--T:76--> | |||
# Install py-spy in a virtualenv in your home | # Install py-spy in a virtualenv in your home | ||
# Attach to the running job, using <code>srun --pty --jobid JOBID bash</code> | # Attach to the running job, using <code>srun --pty --jobid JOBID bash</code> |