How to transfer my Jupyter Notebooks from the JupyterHub to my VM ?

The Jupyter notebook documents can be exported to many other formats. If your Jupyter Notebook document contains Python code, stored in cells, you can click “File/Export Notebook As/Export to Executable Script”

Here's how the cells appear on a Jupyter Interface :

And here's how the Jupyter Notebook segment appear after a Python file export :

This way, all cells that are not Python code are commented out, and you wind up with a functioning Python code that can be uploaded to the VM, and run using a Python command.

Caution : Current Kernel of Jupyter Notebook is Python3, make sure to run “python3” on your script, once on the virtual machine.