38,757
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 218: | Line 218: | ||
* il est possible de rouvrir une session <i>Desktop</i> active après que l'onglet a été fermé; | * il est possible de rouvrir une session <i>Desktop</i> active après que l'onglet a été fermé; | ||
* la session <i>Desktop</i> se termine en même temps que la session JupyterLab. | * la session <i>Desktop</i> se termine en même temps que la session JupyterLab. | ||
== Running notebooks as Python scripts == | |||
1. From the console, or in a new notebook cell, install <tt>nbconvert</tt> : | |||
<syntaxhighlight lang="bash">!pip install --no-index nbconvert</syntaxhighlight> | |||
2. Convert your notebooks to Python scripts | |||
<syntaxhighlight lang="bash">!jupyter nbconvert --to python my-current-notebook.ipynb</syntaxhighlight> | |||
3. Create your [[Running_jobs#Use_sbatch_to_submit_jobs|non-interactive submission script]], and submit it. | |||
In your submission script, run your converted notebook with: | |||
<syntaxhighlight lang="bash">python my-current-notebook.py</syntaxhighlight> | |||
And submit your non-interactive job: | |||
{{Command | |||
|sbatch my-submit.sh | |||
}} | |||
= Messages d'erreur = | = Messages d'erreur = |