Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnighter/ipydra
Web interface for spawning IPython Notebook servers.
https://github.com/midnighter/ipydra
Last synced: 11 days ago
JSON representation
Web interface for spawning IPython Notebook servers.
- Host: GitHub
- URL: https://github.com/midnighter/ipydra
- Owner: Midnighter
- Created: 2013-09-12T20:02:43.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-23T20:58:06.000Z (over 11 years ago)
- Last Synced: 2024-04-16T03:31:25.105Z (7 months ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ipydra
======Web interface for spawning IPython Notebook servers. Includes an admin interface for listing spawned notebooks.
Used in PyCon 2013 tutorial: https://us.pycon.org/2013/schedule/presentation/28/
usage
=====1. install dependencies
```
pip install -r requirements.txt
```2. copy the ipydra.cfg.default to ipydra.cfg and configure
3. create the db file
```python
from ipydra import db, create_app
db.create_all(app=create_app())
```4. run the development server
```python
python ipydra/runserver.py
```or make an wsgi file and server it from apache
```python
""" example wsgi file with virtualenv"""
activate_this = '/home/ubuntu/repos/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))import site
site.addsitedir('/home/ubuntu/repos/ipydra')from ipydra import create_app
application = create_app()
```notes
=====* Flask development server will fail to restart if child notebook servers are still running. Not sure if there's a fix for this, but it doesn't happen with apache.
* Exposing IPython notebooks listening on all IP addresses is highly insecure. I highly recommend running this in a dedicated VM or sandboxed environment.
credits
=======Author: Zach Howard (https://github.com/zhwrd)
Thanks to ipython-hydra (https://github.com/cni/ipython-hydra) for inspiration.