GithubHelp home page GithubHelp logo

media.jl's Introduction

Media

Build Status

Media.jl provides a display system which enables the user handle multiple input/output devices and decide what media types get displayed where. It's used by DevTools.jl and Juno.

Set media types:

using Media
media(Gadfly.Plot, Media.Graphical)
media(DataFrames.DataFrame, Media.Tabular)

Hook media and concrete types up to outputs:

setdisplay(Media.Graphical, BlinkDisplay._display)

which means "display graphical output on the BlinkDisplay device". You could also set tabular data (e.g. Matrices and DataFrames) to display with Blink.jl:

setdisplay(Media.Tabular, BlinkDisplay._display)
rand(5, 5) #> Displays in pop up window

or set the display for specific types (abstract or concrete):

setdisplay(FloatingPoint, BlinkDisplay._display)
2.3 #> Displays with Blink

In principle you can also set displays for a given input device, although this needs more support from Base to work well.

Use

unsetdisplay(Media.Tabular)

to undo the change.

media.jl's People

Contributors

chrisrackauckas avatar femtocleaner[bot] avatar jeffbezanson avatar juliatagbot avatar mikeinnes avatar pfitzseb avatar tkelman avatar varanas 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.