Over the next few weeks, I’ll be making a few LinkedIn posts promoting/demonstrating bokeh-based tools for hydrogeology/groundwater modelling. I’m planning on cross posting them here (if there aren’t any objections…)
The first one is here , and showcases my cross section tool for viewing arbitrarily-drawn cross sections of geologic models and displaying various types of downhole data on section (lithology, water levels, well screens, etc.).
For the bokeh community, the neat addition to this application (for this project) was adding inline time series plots to the section, so you can see the chloride (contaminant) concentrations at a particular well over time on a custom HoverTool/tooltip figure.
Hi @gmerritt123, awesome tool indeed. Does your inline timeseries plot work when in fullscreen mode? I’m struggling with that at the moment. Playing around with ‘z-index’ of the div at the moment. Would appreciate a few pointers
Sorry for the late reply. I tried a few different methods with this. Very briefly:
1.) Bokeh.embed.embed_item(JSON.parse(~jsonified-plot-from-bokeh~), ~existing-div-to-embed-into~);
2.) Utilizing a third-party JS-library to re-create the tooltip-plot entirely from the browser JS side, however triggered from an instance of Bokeh’s HoverTool.
Both methods work in fullscreen mode, but, Method 1 breaks much of the interactivity I need to preserve between Bokeh python and the bowser JS. So, I ended-up going with method 2.
A third method was to utilize a bokeh Dialog. This method was the easiest to implement and preserves much of the interactivity I need between bokeh python and browser JS. However, the Dialog doesn’t appear when in fullscreen mode. I started a separate thread for the remaining issue here.