Code Monkey home page Code Monkey logo

pyecharts.js's Introduction

pyecharts.js

npm version

pyecharts.js is a Brython port of pyecharts to generate echarts directly in modern browsers.

It is a fun project to play with Brython, which let you run pure python code in browsers.

Installation

npm install --save pyecharts

Demo

  1. Visit https://chfw.github.io/pyecharts/
  2. Paste your sample codes into the editor or write your own code from scratch
  3. Press 'Run'

Offline demo

  1. Clone it
  2. Run a static http server
  3. Open a browser and visit http://localhost:8000

Here are all the commands:

$ git clone https://github.com/chfw/pyecharts/
$ cd pyecharts
$ python -m http.server # python 2, please use python -m SimpleHTTPServer

Then you can do paste and run.

Development

You will need python 3 for development and can develop it like any other python packages. Once you are happy with your changes, here is the command for packaging:

make

The hard work is to find out the relevant dependency for packaging and list them in bp-requirements.txt. The current practices is trial the demo in your browser and see which standard module are missing. Place its name in bp-requirements.txt. Repeat it until you get zero import errors.

Baselines

  1. pyecharts v0.2.6
  2. Brython 3.3.2

License

pyecharts.js will be released under the MIT License. See LICENSE for more information.

pyecharts.js's People

Contributors

chenjiandongx avatar chfw avatar kinegratii avatar landpack avatar 647-coder avatar miraclexyz avatar mowujilun avatar shkey avatar xbanke avatar

Watchers

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