First, install Node.js. The installers on the Node.js website also include Node’s package manager, npm. Alternatively, install both of these from your package manager. For example, on Ubuntu or Debian:
sudo apt-get install nodejs-legacy npm
python setup.py css js
This will automatically fetch the remaining dependencies (bower, less) and install them in a subdirectory.
--NotebookApp.ignore_minified_js=True. This might though highly increase the
number of requests that the browser make to the server, but can allow to test
can take up to 30 sec.
Making a notebook release¶
Make sure the repository is clean of any file that could be problematic. You can remove all non-tracked files with:
$ git clean -xfdi
This would ask you for confirmation before removing all untracked files. Make
dist/ folder is clean and avoid stale build from
- Update version number in
$ python setup.py jsversion. It will modify (at least)
notebook/static/base/js/namespace.js to make the notebook version available
3 . Commit and tag the release with the current version number:
git commit -am "release $VERSION" git tag $VERSION
- You are now ready to build the
$ python setup.py sdist --formats=zip,gztar $ python setup.py bdist_wheel
5. You can now test the
wheel and the
sdist locally before uploading to PyPI.
Make sure to use twine to upload the archives over SSL.
$ twine upload dist/*
- If all went well, change the
notebook/_version.pyback adding the
- Push directly on master, not forgetting to push