demo.bokeh.org | Hosted Bokeh App Demos | Learning library
kandi X-RAY | demo.bokeh.org Summary
kandi X-RAY | demo.bokeh.org Summary
Hosted Bokeh App Demos.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of demo.bokeh.org
demo.bokeh.org Key Features
demo.bokeh.org Examples and Code Snippets
Community Discussions
Trending Discussions on demo.bokeh.org
QUESTION
Hello this is my first question (iam noob in everything) and iam kind of nervous not to get on your nervouse.
My overall goal is to create a 30 min lesson (part) where pupils can see:
interactive graphics and the super-fency CODE.
- get attracted to become software engineers_innen or at least start to read the code. (me Measure the impact)
For this i think Jupyter notebook is the best weapon. For usability reason and different levels of interactivity i started to think about creating html-files to have remote access (my admins will kill me before letting me install sth. more on the school enviroment)
So i saw this:
...ANSWER
Answered 2019-Dec-20 at 23:17There's not any straightforward way that I know of to make this work in standalone HTML with Jupyter interactors. However, you can make standalone output that accomplishes this with Bokeh's own widgets:
https://docs.bokeh.org/en/latest/docs/gallery/slider.html
There is some ongoing work that should be out with Bokeh 2.0 that will allow Jupyter interactors to work with Bokeh server apps (not standalone output).
QUESTION
ANSWER
Answered 2018-Jul-05 at 16:56Reveal.js output is displayed from a local server of some kind, correct? AFAIK IFrames will not allow you to load from local files in that case. In general, you cannot load file:\\
from http:\\
because that would be a giant security hole. A solution would be to run a basic HTTP server to serve the Bokeh HTML files, e.g python -m http.server
(or python -m SimpleHTTPServer
for legacy Python 2) and have your IFrame load the Bokeh pages from the simple server.
QUESTION
So I have been trying to build a little something from the bokeh example there:
https://demo.bokeh.org/weather.
My dataset is really similar and this should be very straight forward, yet I have a problem that I cannot explain.
...ANSWER
Answered 2017-Jan-05 at 14:26Well, I can't say with 100% certainty since I can't run the code without the data, but I have a decent good idea what the problem might be. The .data
attribute one ColumnDataSource
is not actually a simple Python dictionary:
QUESTION
I dowloaded the repository for Bokeh Crossfilter example from here:
https://github.com/bokeh/bokeh/tree/master/examples/app/crossfilter
It is supposed to generate the interactive plot displayed here:
https://demo.bokeh.org/crossfilter
I ran main.py in the repository. However, nothing appeared. Then I realized the code does not show the layout. So I added the line show(layout) in the end, which did indeed display the layout on a web browser but it would not update the plot when I select different things for x and y axes. I do realize that show(layout) code only shows whatever the layout was at the moment of running the code and it is not telling it to update. However, I couldn't figure out how to show this plot on a web browser so that it is still interactive (would update the plot when I select different axes on the browser).
I would much appreciate any help. Thank you!
...ANSWER
Answered 2019-Nov-23 at 17:48http://docs.bokeh.org/en/latest/docs/gallery.html In the gallery you can see the first section of examples fall under the bokeh server app category, and require a bokeh server to work interactively.
The second section of examples are standalone (in the browser only).
To run the app corectly: download all the contents of the folder, and save them in the folder, say crossfilter. Open up the command prompt (not in python) and type bokeh serve --show crossfilter. This will open up the app and it should respond to user interaction.
There is a key difference in what can be achieved in running show(layout) from python, and serving a bokeh app from the command line.
Using show(...) will display the content within the browser, from here there is no connection between python and the browser, and therefore no way to update plots from python functions. It can only use javascript (which runs within the browser). There are no javascript callbacks within the crossfilter example, and therefore nothing will happen when you interact with anything.
Bokeh provides a server functionality, which allows code to be run from python and update plots on user interaction. Start from here: http://docs.bokeh.org/en/latest/docs/user_guide/server.html
QUESTION
I'm learning Bokeh, I would like to make the example 'stocks' script https://demo.bokeh.org/stocks produce a standalone html file...I have added the following code:
...ANSWER
Answered 2019-Nov-23 at 01:54The JS files for Bokeh widgets are distributed separately, so that pages only incur the cost of loading them if they actually use them. You need to include bokeh-widgets
from CDN as described in the documentation:
QUESTION
I really like bokeh and I'd like to have a bokeh plot on my website. Running bokeh locally (on Linux) with bokeh serve
works like a charm. But I am having a really hard time getting it to run smoothly on the web server.
I am running it on a DigitalOcean droplet (ubuntu 18.04 with LAMP stack and reverse-proxy nginx). Since I read that bokeh serve
is not meant for production, I tried to set up a more secure and robust environment. I used this article to get started. With another DigitalOcean tutorial and lots of online research and trial&error, I finally got it to work.
Well, at least kind of, because it is incredibly slow. To a point that it took me a while noticing it worked in the first place and it is pretty much unusable. It takes usually 4s, sometimes up to 10s (given my internet connection is not very fast).
The html from the template loads pretty fast though. But
bokeh.min.js?v=540...
(748KB)
bokeh-widgets.min.js?v=409...
(97KB)
bokeh-tables.min.js?v=623...
(256KB)
bokeh-gl.min.js?v=823...
(62KB)
take very long.
I checked, and this is also the case for the website with the article I used as starting point. The official bokeh examples (e.g. weather) load pretty quick with graphs that are far more complex, but there the aforementioned files are also way smaller.
This is part of the nginx conf file:
...ANSWER
Answered 2019-Sep-16 at 19:41First thing I should mention is that the next version of Bokeh (1.4) will support:
- direct SSL termination (i.e. https connections)
- providing "auth hooks" for login/logout
That said, there will still be good reasons to run behind a proxy like Nginx sometimes, e.g. for load balancing.
On to your specific problem: One reason the demo site might load those resources faster is that it is configured to load them from the Bokeh CDN. In the Dockerfile for the demo site, it does:
QUESTION
I have an interactive Bokeh plot that uses CheckBoxGroup to plot different combinations. I wanted to be able to modify the title each time I changed the combinations rather than having to go through changing the title in the code and generating the plot again.
I am a lot familiar with CustomJS, but I tried the following (...only title excerpt):
...ANSWER
Answered 2019-Mar-01 at 21:47You just need to pass the title to the callback. I discovered that plot title is a Bokeh model, so all the regular manipulations apply. Your callback could look something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install demo.bokeh.org
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page