https://github.com/ajkavanagh/vagrant-ipython
My iPython Notebook with pandas, etc.
https://github.com/ajkavanagh/vagrant-ipython
Last synced: 3 months ago
JSON representation
My iPython Notebook with pandas, etc.
- Host: GitHub
- URL: https://github.com/ajkavanagh/vagrant-ipython
- Owner: ajkavanagh
- License: gpl-3.0
- Created: 2015-05-10T06:58:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-10T20:14:52.000Z (over 9 years ago)
- Last Synced: 2025-01-11T13:17:38.464Z (5 months ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iPython Notebook and Vagrant - not too complex but useful
* A Vagrant file and associated provision file to run the iPython Notebook files.
* Some nice configuration files for setting up tmux and a fancy shell promptNote that everything is in **Python 3**.
## Vagrant file
Just `git clone` the repository and do Vagrant up to build the vagrant image. Then:
```shell
$ vagrant ssh... wait for the shell from the Vagrant box ...
$ tmux-session
```This will start the iPython notebook server. This is bound, via the Vagrantfile to http://localhost:8888, which you can navigate to with your browser. Then pick the Playbook you want to explore. Remember to have a read of how to edit a iPython Notebook, but most of it should be fairly self explanatory.
## Configuration Files
In the `provision` directory, there are various configuration files that are used when building the Vagrant box. These are:
* `dot.bashrc`: This becomes .bashrc in the `/home/vagrant` folder. This is the standard Ubuntu 14.04 .bashrc with a few extra bits to work with Virtualenvs and the fancy prompt, and configures the `$PATH` variable to include `/home/vagrant/bin`.
* `dot.tmux.conf`: This becomes .tmux.conf in the `/home/vagrant` folder.
* The tmux command is `Ctrl-A` rather than `Ctrl-B` because I've used `screen` for 15 years.
* I've changed the split commands to work like Vi(m).
* I've disabled logout, unless you hit `Ctrl-D` three times successively.
* `tmux-session`: This is copied to the `/home/vagrant/bin` folder. This configures tmux to create 3 windows and automatically start iPython Notebook in the 3rd window. Typing `tmux-session` at the command prompt configures the tmux session the first time it is run, and simply connects to a running server on subsequent invocations.
* `virtualenv-svn-git-path-prompt.bash`: This is a collection of functions and a 'fancy prompt' that puts the git repository (or SVN!) and active virtualenv onto the path.