Skip to content
Fastplot
Python HTML Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extras
fastplot
fastplot_server
FastPlot.png
README
README.md
setup.py

README.md

Fastplot

Fastplot takes advantage of the rendering capabilities of modern web-browsers and Javascript to [really] quickly update visualisations. Get the best of both worlds: Python to compute, JavaScript to render.
As you can see fastplot its still at an early-stage... please help 🍻

How to install it:

Set server

  • Open a terminal window
  • Go to the fastplot directory you downloaded
  • Then go to fastplot_server directory
  • Type: `sudo chmod 755 fastplot`
  • Open the .profile file by typing: `nano .profile`
  • At the end of the file paste: `export PATH="$your/path/fastplot_server:$PATH"`(make sure to set the correct path)
  • Save the .profile file, exit, and type `source .profile`
  • Now you should be able to execute the fastplot command everywhere in your machine and see the message:
    Running fastplot server...

    Install fastplot python library

  • Go back to the fastplot directory you downloaded
  • Type: `sudo python setup.py install`
  • If all goes well, you should see something like:

    ``` Installed /Library/Python/2.7/site-packages/fastplot-0.0.1-py2.7.egg Processing dependencies for fastplot==0.0.1 Finished processing dependencies for fastplot==0.0.1 ``` 👍

    How to use it:

    1. From your console type fastplot in order to run the server
    2. Now you are free to run your python script using the fastplot library
    An example of a minimal python script:
    
    
    from fastplot import fastplot
    import numpy as np
    
    while True:  # whatever you are gonna do
    
    	# compute some values
    	msg_1 = np.random.uniform(0,1,30)
    	msg_2 = np.random.uniform(0,1,(10,10))
    	msg_3 = np.random.uniform(0.4,1,20)
    
    	# use fastplot to plot those values in the browser...
    	fastplot.plot( 'Example of line plot', msg_1 )
    	fastplot.pcolor( 'Example of pcolor', msg_2 )
    	fastplot.barplot( 'Example of line barplot', msg_3 )
    	
    	
    

    Dependencies:

  • Tornado
  • Socket
  • Disclaimer:

    Instructions were tested on Yosemite (Mac) and assumed to work fine on Unix systems.
    If you get insights on other platforms or you're aware of issues, please let me know.

    You can’t perform that action at this time.