Giter Club home page Giter Club logo

interact.jl's Introduction

Interact

Interact.jl allows you to use interactive widgets such as sliders, dropdowns and checkboxes to play with your Julia code.

Screenshot

Getting Started

To install Interact, run the following command in the Julia REPL:

Pkg.add("Interact")

Note: Interact only works with IPython/Jupyter version 3.0 or higher.

To start using it in an IJulia notebook, include it:

using Interact

GtkInteract provides Gtk support for Interact, letting you use tools like Winston for plotting.

Example notebooks

The best way to learn to use the interactive widgets is to try out the example notebooks in the doc/notebooks/ directory. Start up IJulia from doc/notebooks/:

using IJulia
notebook()

Troubleshooting

Jupyter/IPython version support

Interact needs IJulia to be running on Jupyter/IPython 3.x or Jupyter 4.x. For Jupyter 4.x, the Python packages jupyter and ipywidgets must be installed.

ipywidgets version

Interact relies on the ipywidgets python package which is an add-on to Jupyter that provides the widgets. The 5.x version of ipywidgets is installed by default by IJulia as of now. It might be the case that you have version 4.x of ipywidgets in which case you will need to use the ipywidgets-4 branch of Interact due to backwards-incompatible changes. To do this, simply run Pkg.checkout("Interact", "ipywidgets-4"). You can run

import ipywidgets
ipywidgets.__version__

in the python shell used by Jupyter to find out which version of ipywidgets you have. (Pkg.build("Interact") should also tell you which version of ipywidgets you have)

interact.jl's People

Contributors

shashi avatar jobjob avatar jiahao avatar dpsanders avatar stevengj avatar timholy avatar wookay avatar faviovazquez avatar babaq avatar mlubin avatar bluesmoon avatar skleinbo avatar tkelman avatar catawbasam avatar tanmaykm avatar

Watchers

James Cloos 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.