mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
bdc226a638
This is a hopefully more robust way of doing atomic writing of a file. Previously, we wrote a new temporary file on each write, and renamed it over the target file on success. This is technically neat, but constantly recreating the file causes problems with some network filesystems, and with sync tools like Dropbox. The new approach copies the old file contents to a temporary file, overwrites the target using standard open() and write() calls, and then removes the temporary file. In case of a failure during writing, the temporary file is renamed over the target, which should preserve the old data. This way, we're only using a new inode in case of a write failure, which is hopefully rare, instead of on successful writes. |
||
---|---|---|
docs | ||
examples | ||
git-hooks | ||
jupyter_notebook | ||
scripts | ||
tools/tests | ||
.bowerrc | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
bower.json | ||
CONTRIBUTING.md | ||
COPYING.md | ||
Dockerfile | ||
gulpfile.js | ||
MANIFEST.in | ||
package.json | ||
README.md | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
setupbase.py |
Jupyter Notebook
The Jupyter HTML notebook is a web-based notebook environment for interactive computing.
Dev quickstart:
- Create a virtual env (ie jupyter-dev)
- ensure that you have node/npm installed (ie brew install node on OS X)
- Clone this repo and cd into it
- pip install -r requirements.txt -e .
NOTE: For Debian/Ubuntu systems, if you're installing the system node you need to use the 'nodejs-legacy' package and not the 'node' package.
Launch with:
jupyter notebook
For Ubuntu Trusty:
sudo apt-get install nodejs-legacy npm python-virtualenv python-dev
python2 -m virtualenv ~/.virtualenvs/jupyter_notebook
source ~/.virtualenvs/jupyter_notebook/bin/activate
pip install --upgrade setuptools pip
git clone https://github.com/jupyter/jupyter_notebook.git
cd jupyter_notebook
pip install -r requirements.txt -e .
jupyter notebook