Skip to content

Instantly share code, notes, and snippets.

@chronitis
chronitis / jupyter_kernel_list.md
Last active April 14, 2024 13:20
Updated Jupyter Kernels page

What is a kernel?

The kernel lets you run code in a particular programming language using one of the Jupyter tools, such as the Notebook, Jupyterlab or nteract. Installing additional kernels will let you run code in more languages using your existing jupyter installation.

Technically, the kernel is an application which speaks the Jupyter Messaging Protocol, to receive code input from the frontend and respond with the results.

Which kernels do I have installed?

In the Notebook or JupyterLab, the list of available kernels will be shown when trying to create a new notebook.

#!/usr/bin/python3
import requests
import time
import click
MORSE = {
'A': '.-', 'a': '.-',
'B': '-...', 'b': '-...',
'C': '-.-.', 'c': '-.-.',
'D': '-..', 'd': '-..',
@chronitis
chronitis / osmrelation_to_gpx.py
Created January 28, 2015 17:58
OSM Relation -> GPX utility
#!/usr/bin/env python3
"""
osmrelation_to_gpx.py
This script downloads a relation from OSM (given the relation number), fetches
all the ways contained and then writes the contents into a GPX file for easy
import into other tools (for instance, a handheld GPS unit/GPS-equipped phone).
Requires python3.
@chronitis
chronitis / widget_int.py
Created July 9, 2014 16:19
IntRangeWidget with tuple and scalar traits
"""IntWidget class.
Represents an unbounded int using a widget.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.