Easily create a Saagie Python job from a Jupyter notebook
Project description
This plugin allows you to easily create a Saagie Python job from a local Jupyter notebook.
Install
In your Jupyter Python environment, run: pip install jupyter-saagie-plugin
Usage
Simply run jupyter notebook as always, you will see a new button in the toolbar. Use it to log in to your account and deploy a job using the code in your notebook. You can update an existing job as well.
For deploying to a Python job, Python 3.5 & 2.7 are supported.
If you want to pre-fill your Saagie root URL (used in the plugin’s login form), you can setup a SAAGIE_ROOT_URL environment variable before you run the notebook.
Uninstall
pip uninstall jupyter-saagie-plugin jupyter nbextension uninstall saagie --user
Modifying this extension
In dev mode, you can use a Docker of Jupyter notebook and install this extension in it. First, run a Jupyter Docker in bash mode:
docker run -it --rm -p 8888:8888 -v [your_project_path]/jupyter-saagie-plugin/:/jupyter-saagie-plugin/ [--env SAAGIE_ROOT_URL="https://xxx-manager.prod.saagie.io/"] saagie/jupyter-python-nbk:latest /bin/bash
(Seting up the ``SAAGIE_ROOT_URL`` environment variable is optional)
Then install the Jupyter extension in your Docker container:
cd /jupyter-saagie-plugin/ python3 setup.py install cd /notebooks-dir /usr/local/bin/start-notebook.sh --NotebookApp.token='' --NotebookApp.password=''
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
Hashes for jupyter-saagie-plugin-1.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7d040b23199d7765d4a48269c61bf3c14c8c2b0a02ee64a026e46039134d8f |
|
MD5 | 067717695b4f81179583a5ebb310c1ab |
|
BLAKE2b-256 | 6483ca1ba22ee97223db96f365277a65bfb1e3d626da511c8ff795a50547aad6 |