Serving HiPlot with Flask

- 1 min

Serving HiPlot with Flask

pandas==0.24.2
hiplot==0.1.12
Flask==1.1.1

import hiplot as hip
import pandas as pd
from flask import Flask

app = Flask(__name__)

@app.route('/')
def run_hiplot():
	hiplot_exp = hip.Experiment.from_dataframe(self.df)
    return hiplot_exp.to_html()

if __name__ == "__main__":
    app.run(debug=True,host='0.0.0.0', port=6006)

comments powered by Disqus
rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora