Coder Social home page Coder Social logo

interactive-documents's Introduction

interactive-documents

Ideas and tests for how to make interactive (DocOnce) documents, e.g., with flask.

Contents

  • Proof-of-concept how to let a document be a flask app with multiple apps, se examples/add_mul.
  • A not-yet-working example on how to embed interactive bokeh plots on bokeh-servers in a flask app (examples/bokeh_sliders).
  • A working example on how to embed interactive bokeh apps using a bokeh-server, and the bokeh (0.11.1) autoload_server ( examples/sliding_ball )

Goal

The goal of this project is to establish recipes such that DocOnce documents can feature interactive applications. The examples/add_mul example shows the principle, but of particular interest is to embed multiple interactive bokeh plots in a DocOnce document. This will (based on the ideas in examples/add_mul) require embedding an app like examples/bokeh_sliders/sliders_app.py in a flask app, but how to do this is yet an open question.

An alternative approach is to drop integrating interactive bokeh server apps into a flask app, but instead embed these server apps directly in HTML using iframes:

    <div>
    <iframe
        src="http://demo.bokehplots.com:5006/bokeh/sliders/#"
        frameborder="0"
        style="overflow:hidden;height:460px;width: 120%;
        -moz-transform: scale(0.85, 0.85);
        -webkit-transform: scale(0.85, 0.85);
        -o-transform: scale(0.85, 0.85);
        -ms-transform: scale(0.85, 0.85);
        transform: scale(0.85, 0.85);
        -moz-transform-origin: top left;
        -webkit-transform-origin: top left;
        -o-transform-origin: top left;
        -ms-transform-origin: top left;
        transform-origin: top left;"
        height="460"
    ></iframe>
    </div>

How to organize all the potential interactive bokeh apps on some other server is an open question.

It seems most promising to integrate sliders_app.py type of code as an app in the setup in examples/add_mul.

References

interactive-documents's People

Contributors

fredf10 avatar hplgit avatar

Watchers

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