Skip to main content

A set of Python utility methods to ease usage of Jupyter notebook

Project description

https://travis-ci.org/Stibbons/jupyter_utils.svg?branch=master Pypi package

A set of Python utility methods to ease usage of Jupyter notebook

Installation

Install jupyter_utils in Anaconda:

$ source activate my_conda_env
$ pip install jupyter_utils

Note: only dependencies described in requirements.txt will be installed when using pip install. The development dependencies (pylint,…) and not installed on deployment.

Usage

From now, on every Jupyter notebook that use this conda environment, you can install any missing anaconda package directly from the cell.

Install Anaconda package

An anaconda package can be installed directly from the notebook using ! conda install …, but you need to specify the name of the kernel. To simply this, Jupyter Utils provides:

from jupyter_utils import conda
conda.install("numpy")

Grid Search CV on Apache Spark

from jupyter_utils.spark import SparkGridSearchCV
SparkGridSearchCV(sc, model, params)

Contributing

Create a virtualenv:

$ virtualenv venv
$ source venv/bin/activate
$ pip install --upgrade pip  # Force upgrade to latest version of pip

Setup for production:

$ pip install -r requirements.txt .

Setup for development and unit tests

$ pip install -r requirements.txt -r requirements-dev.txt -e .

Build source package:

python setup.py sdist

Build binary package:

python setup.py bdist

Build Wheel package:

python setup.py bdist_wheel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_utils-1.2.0.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file jupyter_utils-1.2.0.tar.gz.

File metadata

File hashes

Hashes for jupyter_utils-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5bfd377cab29cbb35e13f5e6f396a9a7ddc8e47f6e108ee456a3814211504e4c
MD5 7cb5c72c67dbbb6d847563c7f3f68e65
BLAKE2b-256 953cd9844a73ac6202e95ab1a568bd154a896f572f465bdfefa1837246145f6d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page