Jupyter notebook

The Jupyter notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: numerical simulation, statistical modeling, machine learning and much more.

(Reference to Jupyter notebook)

How to query the archive using Jupyter notebooks

The following example is based on Python 3 and can be imported as Python module into a Jupyter notebook: Query_archive.py.

images/confluence/download/attachments/120474442/jupyter-view.png

Steps to import it into Jupyter notebook

Follow the next steps to use the attached python script in Jupyter notebooks:

  • Upload the file attached Query_archive.py into the working directory of your Jupyter notebook.

  • Just import .PY File into the ipynb file.

The next figure shows how to import Query_archive into a given Jupyter notebook.

images/confluence/download/attachments/120474442/import_notebook.png

How to save query results to VOSpace user account

The following example is based on Python 3 and can be imported as Python module into a Jupyter notebook:

QueryArchiveAndSaveResults.py.