Skip to main content
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 1.6

Easily distribute Scikit-learn Cross Validation on a Spark Cluster. Only for Spark 1.6.x. For Spark 2, use Sparkit-Learn or Spark-SKLearn.

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 --upgrade -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

Metadata

Release files for jupyter_utils 1.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter_utils 1.2.6
File Size Uploaded
jupyter_utils-1.2.6.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyter_utils 1.2.6
File Interpreter ABI Platform
jupyter_utils-1.2.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.7 kB

Release files / jupyter_utils-1.2.6.tar.gz

Download URL jupyter_utils-1.2.6.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d9aef1d2580f2467c6e2a9e465a370cea53cd87884c1d21a695b554a89c06b2e
BLAKE2b-256 checksum
How to use checksums
2fef54713a0af7079602f40e0ae01cb189eae13fef3a65238b5857536e01468d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / jupyter_utils-1.2.6-py2.py3-none-any.whl

Download URL jupyter_utils-1.2.6-py2.py3-none-any.whl
Size 10.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3c647bf52315460da11021fa404abf59d986c70a0b78f9243799d06fc3c47231
BLAKE2b-256 checksum
How to use checksums
8cf62731b88690ed6697c0340444c6b830a93e03501732aa15bbf65c83f89987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.6 This release

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

1 release file

0.0.1.dev1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page