Coder Social home page Coder Social logo

ipydra's Introduction

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
  1. copy the ipydra.cfg.default to ipydra.cfg and configure

  2. create the db file

from ipydra import db, create_app
db.create_all(app=create_app())
  1. create ipython notebook profile
ipython profile create nbserver
  1. run the development server
python ipydra/runserver.py

or make an wsgi file and server it from apache

""" 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.

ipydra's People

Contributors

zhwrd avatar dmaniloff avatar senduren avatar mdshw5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.