All Projects → ColCarroll → callisto

ColCarroll / callisto

Licence: other
A command line utility to create kernels in Jupyter from virtual environments.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to callisto

jupyter-venv
Jupyter Notebooks and Virtual Environments
Stars: ✭ 20 (+33.33%)
Mutual labels:  jupyter, virtualenv
drawdata
Draw datasets from within Jupyter.
Stars: ✭ 500 (+3233.33%)
Mutual labels:  jupyter
governance
The governance process and model for Project Jupyter
Stars: ✭ 74 (+393.33%)
Mutual labels:  jupyter
antinex-core
Network exploit detection using highly accurate pre-trained deep neural networks with Celery + Keras + Tensorflow + Redis
Stars: ✭ 19 (+26.67%)
Mutual labels:  jupyter
appmode
Creating web applications with Jupyter and Binder
Stars: ✭ 37 (+146.67%)
Mutual labels:  jupyter
nimbo
Run compute jobs on AWS as if you were running them locally.
Stars: ✭ 126 (+740%)
Mutual labels:  jupyter
fish-poetry
🐟🐍 a fish plugin that automatically activates the poetry subshell
Stars: ✭ 25 (+66.67%)
Mutual labels:  virtualenv
py4chemoinformatics
Python for chemoinformatics
Stars: ✭ 78 (+420%)
Mutual labels:  jupyter
itikz
Cell and line magic for PGF/TikZ-to-SVG rendering in Jupyter notebooks
Stars: ✭ 55 (+266.67%)
Mutual labels:  jupyter
ClimateLaboratoryBook
JupyterBook source for The Climate Laboratory
Stars: ✭ 74 (+393.33%)
Mutual labels:  jupyter
DashIntro
A quick intro to Dash made for the PyData event in Zurich
Stars: ✭ 57 (+280%)
Mutual labels:  jupyter
argparse-to-class
Transform argparse into class format for Jupyter Notebook execution
Stars: ✭ 20 (+33.33%)
Mutual labels:  jupyter
cornerstone widget
A jupyter widget for the cornerstone library to make showing flashy images with nice tools easier.
Stars: ✭ 25 (+66.67%)
Mutual labels:  jupyter
angr-cli
Repo for various angr ipython features to give it more of a cli feeling
Stars: ✭ 41 (+173.33%)
Mutual labels:  jupyter
workshop
Workshop: Micromagnetics with Ubermag
Stars: ✭ 19 (+26.67%)
Mutual labels:  jupyter
workbench
A hierarchical environment manager for bash, written in bash.
Stars: ✭ 17 (+13.33%)
Mutual labels:  virtualenv
voila-gpx-viewer
GPX Viewer web app built with Jupyter, ipywidgets, ipyleaflet, bqplot and voila
Stars: ✭ 43 (+186.67%)
Mutual labels:  jupyter
wxyz
Some Experimental Widgets
Stars: ✭ 25 (+66.67%)
Mutual labels:  jupyter
picatrix
Picatrix is a library designed to help security analysts in a notebook environment, such as colab or jupyter.
Stars: ✭ 35 (+133.33%)
Mutual labels:  jupyter
pydna
Clone with Python! Data structures for double stranded DNA & simulation of homologous recombination, Gibson assembly, cut & paste cloning.
Stars: ✭ 109 (+626.67%)
Mutual labels:  jupyter

Build Status Coverage Status

Callisto

The fourth Galilean moon of Jupyter.

A command line utility to create kernels in Jupyter from virtual environments.

Installation

Callisto may be installed from pypi:

pip install callisto

Tested against python 2.7, 3.4, 3.5, 3.6.

Basic Usage.

Typical use is to just activate it inside a virtual environment:

$  virtualenv venv
...
$  source venv/bin/activate
(venv) $  callisto
Successfully installed a new jupyter kernel "venv":
{
  "env": {},
  "language": "python",
  "display_name": "venv",
  "argv": [
    "/Users/colin/venv/bin/python",
    "-m",
    "ipykernel",
    "-f",
    "{connection_file}"
  ]
}
See /Users/colin/Library/Jupyter/kernels/venv/kernel.json to edit.

Jupyter servers will now have an option for a kernel called venv.

https://colindcarroll.com/img/venv.png

Naming the kernel.

You may also give kernels a more descriptive name:

(venv) $  callisto -n pete
Successfully installed a new jupyter kernel "pete":
{
  "env": {},
  "display_name": "pete",
  "argv": [
    "/Users/colin/venv/bin/python",
    "-m",
    "ipykernel",
    "-f",
    "{connection_file}"
  ],
  "language": "python"
}
See /Users/colin/Library/Jupyter/kernels/pete/kernel.json to edit.

Jupyter servers will now have an option for a kernel called venv, and pete.

https://colindcarroll.com/img/venv_and_pete.png

Deleting kernels.

Sometimes you may want to tidy kernels up a bit.

(venv) $  callisto -d
Deleted jupyter kernel "venv" from /Users/colin/Library/Jupyter/kernels/venv/kernel.json:
{
  "argv": [
    "/Users/colin/venv/bin/python",
    "-m",
    "ipykernel",
    "-f",
    "{connection_file}"
  ],
  "env": {},
  "language": "python",
  "display_name": "venv"
}

Jupyter servers will no longer have a kernel named venv.

Lacking courage.

Callisto doesn't try to be too clever.

(venv) $  deactivate

$  callisto
Usage: callisto [OPTIONS]

Error: The environment variable VIRTUAL_ENV is not set (usually this is set
automatically activating a virtualenv).  Please make sure you are in a
virtual environment!

Viewing existing kernels.

If you forgot the informative message about the kernel information, you can see it later.

$  source venv/bin/activate

(venv) $  callisto --list
No kernel found at /Users/colin/Library/Jupyter/kernels/venv/kernel.json

(venv) $  callisto -l --name pete
Found kernel "pete" at /Users/colin/Library/Jupyter/kernels/pete/kernel.json:
{
  "display_name": "pete",
  "language": "python",
  "argv": [
    "/Users/colin/venv/bin/python",
    "-m",
    "ipykernel",
    "-f",
    "{connection_file}"
  ],
  "env": {}
}

Adjusting the PYTHONPATH.

With isolated kernels, you may wish to run all your notebooks from a single directory, but using code from the project directories.

(venv) $  callisto -n pete --path=$(pwd)
Successfully installed a new jupyter kernel "pete":

{
  "argv": [
    "/Users/colin/venv/bin/python",
    "-m",
    "ipykernel",
    "-f",
    "{connection_file}"
  ],
  "language": "python",
  "env": {
    "PYTHONPATH": "/Users/colin/projects/pete:PYTHONPATH"
  },
  "display_name": "pete"
}
See /Users/colin/Library/Jupyter/kernels/pete/kernel.json to edit.

Now the pete kernel will be able to import from the folder /Users/colin/projects/pete.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].