For questions, use https://discourse.holoviz.org/ instead! This chat is for informal discussions and debugging sessions with developers of the HoloViz.org tools (HoloViews, Datashader, Panel, hvPlot, GeoViews, Param, etc.), but user questions should go to the HoloViz Discourse site so that others won't have to ask them again.
philippjfr on master
Panel 0.11.0rc4: Auto Reload- S… (compare)
philippjfr on dont-reload-external-module
conda update
dry runs and what it suggested wasn't so nice, in particular it wanted to install panel (which is already installed in develop mode). I don't know exactly why, maybe because I have holoviews in my environment.
panel serve
from command line. But not with python
and then .show()
or pn.serve()
in the python file. Is that correctly understood?
from flask import Flask, render_template
from werkzeug.wrappers import Request,Response
app=Flask(_name_)
@app.route('/plot/')
def plot():
from shapely.geometry import Point,Polygon
import pandas as pd
.......
.......
......
......
......
dd=df_div.opts(width=70, height=70)
dd1=df_div1.opts(width=600, height=90)
finalplot=pn.Column(pn.Row(dd, dd1), tiles*rasterize(hmap1).options(**opts)*hmap2*logo1.opts(hooks=[absolute_position], apply_ranges=False)).servable()
#print("--- %s seconds ---" % (time.time() - strtt))
#finalplot
script1, div1 = components(finalplot)
cdn_js=CDN.js_files[0]
#cdn_css=CDN.css_files[0]
return render_template("plot.html",
script1=script1,
div1=div1,
#cdn_css=cdn_css,
cdn_js=cdn_js )
@app.route('/')
def home():
return render_template("home.html")
@app.route('/about/')
def about():
return render_template("about.html")
if _name=="main_":
from werkzeug.serving import run_simple
#app.run(debug=True,port=)
run_simple('localhost',9000,app)
I am getting error
File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 190, in components
models = _check_models_or_docs(models)
File "/home/XXXX/anaconda3/envs/plot2/lib/python3.7/site-packages/bokeh/embed/standalone.py", line 398, in _check_models_or_docs
'Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document'
ValueError: Input must be a Model, a Document, a Sequence of Models and Document, or a dictionary from string to Model and Document
127.0.0.1 - - [23/May/2020 17:38:05] "GET /plot/ HTTP/1.1" 500 -
sorry for font size , by mistake it became bigger in font size.