A set of Python utility methods to ease usage of Jupyter notebook
Project description
A set of Python utility methods to ease usage of Jupyter notebook
Free software: MIT
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jupyter_utils-1.2.4.tar.gz
.
File metadata
- Download URL: jupyter_utils-1.2.4.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348a9430ea82d4f79263fe2859fd847d1640d002756d7ea22891145a1ad5fe18 |
|
MD5 | d424f4b5903d06d2a63e55458c996368 |
|
BLAKE2b-256 | 0292e064a720e29509b8f773685730b044df4ed4ab4356b91a4c7ef2c7fa8b5b |
File details
Details for the file jupyter_utils-1.2.4-py2.py3-none-any.whl
.
File metadata
- Download URL: jupyter_utils-1.2.4-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae1ab47f627aef93c5b0129bd583a4cc5b1297daa9044211434262fce6a7e33 |
|
MD5 | 4cec3b728e0805629fadac853c91b182 |
|
BLAKE2b-256 | 02809e78f0c0fcda64962886ad9a9b7646a5c708af079e49f8c5596071101f6c |