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 .
$ python setup.py develop

Execute unit tests:

$ python setup.py test

Code Style:

$ python setup.py flake8
$ yapf -r -i jupyter_utils

Build:

$ # Source package
$ python setup.py sdist
$ # Binary package:
$ python setup.py bdist 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.5.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

jupyter_utils-1.2.5-py2.py3-none-any.whl (10.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for jupyter_utils-1.2.5.tar.gz
Algorithm Hash digest
SHA256 a77d966d30e772599b325419cf6b1d40f23125ee5fdfedea0102ad8d5088679e
MD5 8c79c10cd684ebdec677973f90ab78de
BLAKE2b-256 33453cd56eb4c2ed257d3b123cf7f48b2f81244da8fdfc26a3695e10271ae842

See more details on using hashes here.

File details

Details for the file jupyter_utils-1.2.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_utils-1.2.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e263da318b92a3c44f3fc28d211a2e4727a76157c4161d257fa8d926f85f51ee
MD5 434463cdaae7d7888f940dbc0a293ecf
BLAKE2b-256 0de0614a217e1887562d309f0c035eafbfca4d904cf68f5844733f869020f74c

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