Skip to content

rafa2000/ipyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipyjs

Reproducible data driven documents with IPython and JavaScript

IPython can inject HTML content and Javascript code directly onto a notebook. This, plus the easy production and interchange of JSON data between all components and languates inside the same notebook, allows the use of third party JavaScript libraries —or any other scripting language— to enhance the Reproducible capabilities of your notebook.

Used Libraries

  • Dynatable.js - Dynamic Tables with sorted columns, search and pagination.
  • Highcharts - Publish quality charts (bar, pie, line, scatter plots, etc.)
  • D3.js - Free format high quality charts
  • three.js - Three-dimensional graphs

Examples

Here are some simple examples to help you mix and match these Javascript libraries with your IPython notebooks:

  • dynatable_in_ipython Dynatable.js and Faker.js inside IPython example.

  • higcharts_in_ipython Highchards.js inside IPython example.

  • d3_in_ipython D3.js inside IPython example.

  • three_in_ipython three.js inside IPython example.

Note: You may want to download each notebook, inspect the code, and run it on your computer to actually see the generated charts or dynamic tables. I haven't put an autorun on the JavaScript code yet. If you have some suggestions please clone the project and make a pull request. I just had the reqular javascript autostart, when the dom is ready, but it worked only for the first graph using it. So I took it off the examples. I need a way to execute in a synchronous way several charts inside the notebooks.

About

Reproducible data driven documents with IPython and JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published