New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript error when updating table display (PR #87 export-data) #89
Comments
Those are definitely the relevant issue/PR. The work has been merged and those error messages should go away with the next release of Bokeh. If you'd like to try things out early, dev builds are installable now: https://bokeh.pydata.org/en/latest/docs/installation.html#developer-builds |
@bryevdv thanks so much for chiming in! I'll give the dev builds a go. |
So I just tried adding
Traceback:
|
Should be git+https |
Thanks! I knew it'd be something silly. Unfortunately there is a user input prompt that seems to be broken, I can't pip install:
Same traceback and error message each time:
|
@GenevieveBuckley check out the link shared by @bryevdv. Looks like building Bokeh is quite tricky so they provide prerelease conda and pip packages. The installation from source instructions are quite unconventional! https://bokeh.pydata.org/en/latest/docs/dev_guide/setup.html#devguide-setup |
Good point, reading the documentation would be a good start. Ok, so I can get a bokeh development install working well using the steps from your link here: https://bokeh.pydata.org/en/latest/docs/dev_guide/setup.html#devguide-setup I've also been able to create a new microscopium conda env with a bokeh development install. The bokeh sample data tests work. In the old microscopium conda env (using bokeh 0.13) I can run But... putting the last two bits together is a problem. Once I switch to the conda env with the development version of bokeh, our web app no longer updates the figure with the selected images. To make things trickier, there are no python or javascript errors being reported.
Javascript logs: properties.js:14 [bokeh] setting log level to: 'info'
connection.js:183 [bokeh] Websocket connection 0 is now open
data_table.js:180 [bokeh] jquery-ui is required to enable DataTable.reorderable
document.js:162 [bokeh] document idle at 358 ms
notebook.js:60 Bokeh items were rendered successfully |
@GenevieveBuckley Yikes! That's scary, and suggests that whatever we're doing in 0.13 might go away soon. =( |
@jni @GenevieveBuckley The issue is almost certainly that a very bad bug in 0.13 related to selections has been fixed, but that may also require code changes for some users. The good news is the new (proper) way to handle selections is now much more rigorously maintained under new integration tests. TLDR, BokehJS used to replace entire I will try to produce a patch for your code by tomorrow morning. |
@jni @GenevieveBuckley This patch appears to be what is needed to get things working with 1.0dev builds:
apologies for the churn, we all make mistakes unfortunately, and this one came in because our integration testing infrastructure fell over for quite a long time. But there are tests in place now to maintain that this kind of pattern always works as expected, and this is the correct approach from 1.0 onward. |
@bryevdv Great! Thank you so much for looking at this! We will pin to 0.13 for now and keep this patch and issue in mind for when it's time to upgrade. Incidentally, we ourselves are not testing any Bokeh functionality as we have no experience with writing UI tests. So if you can point us to anything you're doing that we could maybe implement for our own tests, that would be incredibly useful! |
Wow, thanks so much @bryevdv! That is extremely useful to know. We'll upgrade when there's a stable release of bokeh 1.0.0 I also second Juan's comments - we're not sure how to get started writing UI tests, so if you have any pointers for newbies here that would be highly appreciated. |
Re: PR #87
I'm getting a javascript error related to updating the datatable with selected data from the scatterplot. It doesn't seem like a fatal error, but should still be fixed:
error handling message Message 'PATCH-DOC' (revision 1): DeserializationError("Seq(Any) expected a list or None, got {'0': -0.43731416321298383, '1': -0.4933948783766794}",)
Plan of attack - set the table.source to a CDSView of the scatterplot source selected indices.
Some other possibly related info:
The text was updated successfully, but these errors were encountered: