Troubleshooting Long running jupyter sessions on Posit Workbench
Python
Workbench
Abstract
How to resolve long-running Python code on Jupyter sessions
Description
Long-running interactive computations in JupyterLab and Jupyter Notebook sessions stop when you close the browser tab or log out of Workbench.
Solution
Run the notebook in a non-interactive context.
Using a terminal with an active virtual environment where jupyter and packages for your analysis are installed:
Terminal
/usr/lib/rstudio-server/bin/quarto/bin/quarto render example.ipynb --executeYou can add this version of quarto to the PATH to make it easier for users to invoke.
Alternatively, users can export their notebook to a script, or run it via nbconvert or papermill.