Skip to main content
All CollectionsWEkEO JupyterHubAbout the WEkEO JupyterHub
How to download your JupyterHub Notebook as Python script file?
How to download your JupyterHub Notebook as Python script file?

Let's see how to download a notebook into an executable Python script!

David Bina avatar
Written by David Bina
Updated over 5 months ago

Context


As we have introduced in this article, one of the multiple services and benefits WEkEO offers to its users is the WEkEO JupyterHub, where users can run notebooks and scripts.

You might need to run your work on your computer or a virtual machine, or pass the script to someone else. Good news! There is a simple way to transform your notebook into a Python file in order to download it locally.

In this article, we'll show how you can export a Python script from the WEkEO JupyterHub!

Export Python scripts from JupyterHub


To export a notebook as a Python file from the WEkEO JupyterHub, follow these steps:

  1. Click on File

  2. Click on Export Notebook As...

  3. Click on Export to Executable Script

All non-code cells (Markdown, raw text) will be put in #comment in the script file.

And tadaaaa!

Your Python file will be ready for execution! πŸ˜ƒ

What's next?


If you want to know more about the WEkEO JupyterHub and its computing resources, here are some articles:

We are user-driven and we implement users' suggestions, so feel free to contact us:

  • through a chat session available in the bottom right corner of the page

  • via e-mail to our support team (supportATwekeo.eu)

Regardless of how you choose to contact us, you will first be put in touch with our AI Agent Neo. At any time, you can reach a member of the WEkEO User Support team by clicking on "talk to a person" via chat, or by naturally requesting it in reply to Neo's email.

Did this answer your question?