Interact with Anaconda Cloud
JavaScript Python
Latest commit c1f50f3 Dec 12, 2016 @damianavila damianavila committed on GitHub Merge pull request #36 from Anaconda-Platform/bump_version
Bump version to tag a new release and ship latest fixes
Permalink
Failed to load latest commit information.
nb_anacondacloud Bump version to tag a new release and ship latest fixes Dec 12, 2016
.dockerignore more docker stuff Apr 18, 2016
.gitignore working conda build (failing test, due to auth) Jan 18, 2016
.travis.yml move around ci, linting Jul 27, 2016
LICENSE use real notebook 4.2 Apr 19, 2016
MANIFEST.in Fix server side extension enabling Dec 16, 2015
README.md upgrade to nb_conda_kernels 2.0.0, env cleanup, tests Jul 27, 2016
appveyor.yml
package.json Bump version to tag a new release and ship latest fixes Dec 12, 2016
requirements.txt upgrade to nb_conda_kernels 2.0.0, env cleanup, tests Jul 27, 2016
setup.cfg initial test harness with casperjs and nose Jan 15, 2016
setup.py naming Apr 18, 2016

README.md

NB Anaconda Cloud

Install with conda Build Status (Lin64) Coverage Status

Installation

conda install -c conda-forge nb_anacondacloud
anaconda login  # optional, but recommended

Then, when you launch the Jupyter Notebook, you will see a "cloud upload" button in the toolbar. Press it, and after ensuring your credentials, you'll be able to click Publish.

The Summary and Thumbnail fields are currently only populated the first time you publish!

Development

git clone https://github.com/Anaconda-Platform/nb_anacondacloud.git
conda create -y -n nb_anacondacloud python
conda install -y -n nb_anacondacloud -c conda-forge --file requirements.txt
source activate nb_anacondacloud
python setup.py develop
npm install
jupyter nbextension install nb_anacondacloud --py --sys-prefix --symlink
jupyter nbextension enable nb_anacondacloud --py --sys-prefix
jupyter serverextension enable nb_anacondacloud --py --sys-prefix

jupyter notebook --no-browser

Happy hacking!

Tests

...the hard way

The tests can either be run with a mocked API (it won't hit the Anaconda Cloud API)...

npm run test

..or using your anaconda credentials, i.e. from anaconda login

USE_ANACONDA_TOKEN=1 npm run test

NOTE This approach will test the package "for reals" by:

  • (potentially) deleting a package called untitled
  • publishing a new package untitled
  • releasing a notebook in it
  • releasing another notebook to it

Continuous Integration

Automated tests are run on Travis-CI and Appveyor.

Changelog

1.2.0

  • update to nb_conda_kernels 2.0.0 (and actually depend on it)

1.1.0

  • fix thumbnail uploading
  • CI on Travis and Appveyor
  • Coveralls

1.0.1

  • minor install fixes

1.0.0

  • update to notebook 4.2
  • handle environment uploads better with nb_conda_kernels