Hack for Sweden

Speak to me about: Jupyter

#1

image

Briefly about Jupyter

Project Jupyter is a flora of open source projects very popular within education, research, data science, and more. The founding piece may be the notebook format.

Jupyter Notebooks

Jupyter Notebooks are files just like Word documents, but they contain Markdown, Code, and Output. I think it is the combination of these that makes Jupyter Notebooks so useful. Markdown allows us to write and format text, code can be executed, and its output can be almost anything right within the notebook. But, how do you work with a Jupyter Notebook?

Jupyter Lab

Jupyter Lab is to Jupyter Notebooks (.ipynb) like Word is to Word documents (.docx), it is the environment in which you would work with notebooks. Here is an excellent introduction to Jupyter Lab.

https://www.youtube.com/watch?v=ctOM-Gza04Y

You can install Jupyter Lab on your own computer and start it from a command prompt with jupyter lab. But, you actually have access to a Jupyter Hub during Hack for Sweden, so you don’t need to!

Jupyter Hub

Jupyter Hub allows large groups of users, like all the attendees of Hack for Sweden, to work with Jupyter Notebooks without requiring them to install anything. Instead they simply visit a website, login, and start working.

I have deployed a Jupyter Hub for use during Hack for Sweden - and some time before and after. You can find it at jupyter.se where you login using a Google account. Note that this is not provided to Hack for Sweden officially by Project Jupyter but rather by me as a private person. Also note that the official domain for Project Jupyter is jupyter.org and not jupyter.se.

Sometimes one may want to let another person run the notebook, but what if they don’t have access to the Jupyter Hub?

MyBinder.org

MyBinder.org is a service free for anyone by Project Jupyter and the Binder Hub Team that I’m part of. It is essentially a Jupyter Hub that does not require users to login but also makes code from a git repository runnable by installing code dependencies first. For example, this link allows you to open up and run an analysis of gravitational waves hitting earth 2017.

MyBinder.org is commonly used to host coding related workshops and by researches to make their code more accessible. This picture summarize the process.

image
Picture by @JulietteTaka on Twitter

My background

I work as a Data Engineer for Sandvik, I’m also maintaining Jupyter Hub related projects. Before that I worked as a high school teacher in math and physics 2016-2018. I had then found a lot of joy using Jupyter Notebooks in online courses I studied during this time. So I decided to introduce them in my math classes. Doing so made me setup a Jupyter Hub for the first time following this guide, it also made me end up very active with that code base. After a while I had fallen in love with the warmth of the Jupyter open source community and would love to see more join it.

Right now, I’m especially excited to help schools and universities deploy a Jupyter Hub for their students and help environmental researches do important science.

1 Like
Introduce yourself
#2

How do we publish/share Jupyter

Small test using https://polisen.se/om-polisen/om-webbplatsen/oppna-data/api-over-polisens-handelser/

image

https://jupyter.se/user/salgo1960@gmail.com/lab/tree/SWEPoliceevents.ipynb

GITHUB: https://github.com/salgo60/JupyterTest/blob/master/SWEPoliceevents.ipynb

1 Like
JupyterHub - Get started using open data APIs and coding quickly