Simple wrapper for embedding Bokehplot in a vue-component.
Installation
npm i vue-bokeh --save-dev
Include:
Might be easier to just copy the code from BokehPlot.vue. Its very small and then you will have one less dependency.
Usage
<template> <bokeh-plot :plot="plot"></bokeh-plot></template> <script> components: 'bokeh-plot': BokehPlot vuex: getters: plot actions: fetchPlot { this }</script> <style> </style>
from flask import Flask, jsonifyfrom flask_cors import cross_originfrom bokeh.plotting import figurefrom bokeh.embed import components app = plot = script, div = return