Errors working with bokeh in javascript model

I’m trying to work with Bokeh JS implementation i.e. trying to use the JS API of bokeh to display glyphs. I followed the instructions provided in bokeh documentation, but the page error’s out. For example var plt = Bokeh.Plotting is undefined. What’s going wrong?

I have included all the CSS/JS files as indicated in the documentation. Below is the code copied from the documentation – trying to get it working

<!DOCTYPE html>
<head>
    <link rel="stylesheet" type="text/css" href="http://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.css">
    <link rel="stylesheet" type="text/css" href="http://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.css">
</head>
<body>
    <h1>test</h1>
    
https://code.jquery.com/jquery-3.1.1.min.js http://cdn.pydata.org/bokeh/release/bokeh-0.12.4.min.js http://cdn.pydata.org/bokeh/release/bokeh-widgets-0.12.4.min.js $(function(){ var plt = Bokeh.Plotting; console.log(Bokeh.Plotting); // set up some data var M = 100; var xx = []; var yy = []; var colors = []; var radii = []; for (var y = 0; y </body> </html>

Can someone with bokehjs experience help? Thanks!


Source: stackoverflow-javascript