diff --git a/examples/plotly_example/plotlyjs_example.py b/examples/plotly_example/plotlyjs_example.py deleted file mode 100644 index d32491a6..00000000 --- a/examples/plotly_example/plotlyjs_example.py +++ /dev/null @@ -1,25 +0,0 @@ -from sanic import Sanic -from sanic.response import html -import plotly -import plotly.graph_objs as go - -app = Sanic(__name__) - - -@app.route('/') -async def index(request): - trace1 = go.Scatter( - x=[0, 1, 2, 3, 4, 5], - y=[1.5, 1, 1.3, 0.7, 0.8, 0.9] - ) - trace2 = go.Bar( - x=[0, 1, 2, 3, 4, 5], - y=[1, 0.5, 0.7, -1.2, 0.3, 0.4] - ) - - data = [trace1, trace2] - return html(plotly.offline.plot(data, auto_open=False, output_type='div')) - - -if __name__ == '__main__': - app.run(host='0.0.0.0', port=8000, debug=True) diff --git a/examples/plotly_example/requirements.txt b/examples/plotly_example/requirements.txt deleted file mode 100644 index 8e1e92c2..00000000 --- a/examples/plotly_example/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -plotly>=2.0.7 -sanic>=0.5.0 \ No newline at end of file