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.3.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

jupyter_utils-1.2.3-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for jupyter_utils-1.2.3.tar.gz
Algorithm Hash digest
SHA256 2c2089aece1e30ad4d67776cc1e6e3e8752555025c61fdda19509739a24fe83d
MD5 12aa7474a24a8a73b98acf5de3b3da14
BLAKE2b-256 c849406b4fdf675ad0b238164521e9fe791243e50ccf500a07d3b46cf335f315

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jupyter_utils-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d47aa6abc26c27112b868628ada621e85190b23ff09aa174b548da10ef5963f0
MD5 086a66bedfefd94d4acf8672da2d6bad
BLAKE2b-256 84a6341d80069ab9c68fc76f1c65df9b085526cb920d553e3695f80207836954

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