Coder Social home page Coder Social logo

living-with-machines / d3_js_viz_in_a_python_jupyter_notebook Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 3.0 72 KB

Tutorial code showing how to put a D3 JavaScript visualisation in a Python Jupyter notebook.

Home Page: https://livingwithmachines.ac.uk/d3-javascript-visualisation-in-a-python-jupyter-notebook/

License: MIT License

Jupyter Notebook 97.77% HTML 0.42% JavaScript 1.80%
blog javascript jupyter jupyter-notebook d3 d3js tutorial

d3_js_viz_in_a_python_jupyter_notebook's Introduction

D3 JavaScript visualisation in a Python Jupyter notebook

A Living with Machines repository for code underlying a blogpost about how to put a D3 JavaScript visualisation in a Python Jupyter notebook. The blogpost text is duplicated in blogpost.md.

Try the notebook live on myBinder.org: Binder

Setting up

Clone the repository:

$ git clone https://github.com/Living-with-machines/D3_JS_viz_in_a_Python_Jupyter_notebook
...

Navigate into the directory:

$ cd D3_JS_viz_in_a_Python_Jupyter_notebook

Set up all the dependencies:

$ conda create --name d3forJupyter --file requirements.txt
...

Activate the environment:

$ conda activate d3forJupyter

Set up a kernel for Jupyter:

$ python -m ipykernel install --user --name=d3forJupyter
Installed kernelspec d3forJupyter in <path>

Start up Jupyter notebook:

$ jupyter notebook
[I 17:36:30.869 NotebookApp] Serving notebooks from local directory: <path>
...

Now you should be able to open up the notebook in this repository, D3_JS_viz_in_a_Python_Jupyter_notebook.ipynb and try it out for yourself.

d3_js_viz_in_a_python_jupyter_notebook's People

Contributors

dependabot[bot] avatar kallewesterling avatar kasra-hosseini avatar ov212 avatar

Stargazers

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