mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
a425ed30ef
This came up on reddit: if you want to open a notebook or a file in the text editor from the terminal inside the notebook web interface, you can construct a URL to open. But to do that accurately, you need to know the root directory where the server is looking, and the first part of the URL. This exposes both of those as environment variables: $JUPYTER_SERVER_ROOT and $JUPYTER_SERVER_URL. |
||
---|---|---|
docs | ||
git-hooks | ||
notebook | ||
scripts | ||
tools/tests | ||
.bowerrc | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
bower.json | ||
build-main.js | ||
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/notebook
source ~/.virtualenvs/notebook/bin/activate
pip install --upgrade setuptools pip
git clone https://github.com/jupyter/notebook.git
cd notebook
pip install -r requirements.txt -e .
jupyter notebook