How do you put a bokeh chart in a chameleon pattern?

I have a project with many scripts using Matplotlib. I would like to create a web interface for this project.

How do you place a bokeh chart in a Chameleon template? I use Pyramid and Deform bootstrap if that matters.

Does anyone have a good example?

+3
source share
2 answers

There are several different issues here.

+2

plot.create_html_snippet. , HTML, .

,

<script src="http://localhost:5006/static/dc0c7cfd-e657-4c79-8150-6a66be4dccb8.embed.js" bokeh_plottype="embeddata" bokeh_modelid="dc0c7cfd-e657-4c79-8150-6a66be4dccb8" bokeh_modeltype="Plot" async="true"></script>

, , js- . embed_base_url URL- ( ), javascript .

embed_save_loc , . embed_save_loc , server = True

static_path controls URL- ( ), javascript URLS bokeh.js bokeh.css. http://localhost:5006/static/, CDN

bokeh http://localhost:5006/bokeh/generate_embed/static. , , - .

, .

+2

All Articles