-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Multiple output_file in a single process can fail when models are shared #9767
Comments
@jaseuts "Model" means any Bokeh object with properties that gets synchronized between Python and JavaScript, e.g. the I can't reproduce this on my own with a similar set of commands in a notebook I already have, so we will absolutely need a complete notebook we can inspect and run in order to investigate. |
Noting: if there is an issue here, I would not be surprised if it is specific to Tabs/Panel |
Hi @bryevdv, thanks for your explanation of models. Could you please elaborate what you meant? Why did it work in older version of bokeh (0.12.6) but got error in current version 2.0.0? How can I send you my notebook for inspection? |
@jaseuts I don't know, that's why I am asking you to provide a complete notebook, so that we can reproduce what you are seeing, and investigate. As an aside, can I ask why you are showing the same plot multiple times in different cells? I would regard that as unusual usage and it's possible things only worked before "by accident". |
@bryevdv, a legitimate question: that notebook is to follow a tutorial of Data Visualisation With Bokeh. Each cell to show how to use a certain bokeh's features. For example, cell 3 to use gridplot, cell 4 to use Tabs. As I don't know how to upload the workbook, here's its entire contents
Cell 2:
Cell 3:
Cell 4:
|
@jaseuts unfortunately that code requires an additional data file, so it cannot be run as-is. We need you to either:
|
As an aside, we have our own live tutorial notebooks that can be used instead: I think the actual fix here is to try and get whoever made this other tutorial to update it to be better and more idiomatic. Can you specify where this tutorial is, or who made it? |
@bryevdv, please find attached |
What is that? Is that datacamp? Nothing on the image states who made that. @jaseuts please be more forthcoming with information. I genuinely want to help but you are making this difficult. Always err on the side of giving more information when asking for help from OSS maintainers. If that is DataCamp then that is a very old tutorial, I have no idea how or if it is upgraded in the many years since I helped create it, and I would suggest just avoiding it altogether and using the project tutorial notebooks (linked above) instead. They are much more up to date, more comprehensive, and we make sure they demonstrate the kind of usage we intend. |
@bryevdv , sorry I didn't know those information was relevant, and I didn't mean to make it difficult. Yes, the course is in DataCamp, created by Team Anaconda. Thanks for the link to bokeh live tutorial notebook, I'll definitely have a look. Still, I think there's a bug with version 2.0.0 because version 0,12.6 works without error when I used the same model in 2 different document (running cell 3, cell 4, and cell 3 again) |
@jaseuts There have been two major-number bumps since 0.12.6, each of which is a valid place for breaking changes to be introduced. Even if this construction did work in 0.12.6 it's not any guaranteed reason it must for for 2.0 I personally think this usage is atypical and unusual and not necessarily something we need or intend to support. There is nothing like this in any of the official documentation. |
Thanks, @bryevdv. I can understand what you are coming from. Appreciated your help. Cheers. |
All that said, if you can provide a complete, minimal, self-contained example I am still happy to take a look. |
Thanks for your offer, @bryevdv , but I'm not sure what you meant by self-contained example. This is all I have (saved as .txt instead of .ipynb for uploading) |
I mean something I can personally run, because it has everything necessary. As I mentioned before, I can't runtime notebook code above because it uses a data file file that I don't have. You could rework the code to use synthetic or fake data so that other people can run it. |
Oh, I see. I downloaded the data from here https://assets.datacamp.com/production/repositories/401/datasets/5aae6591ddd4819dec17e562f206b7840a272151/literacy_birth_rate.csv.
|
Here is a drastically more minimal example: @jaseuts just for future FYI: this is the kind of thing that maintainers really need when they ask for a minimal, reproducing, example. OSS is a collaboration, and users need to put in some effort to whittle down their problems to things that can be digested as quickly and easily as possible. |
FWIW I don't think this is common in real-world usage:
Accordingly I would not say this is a very high priority to address. Offhand, there is probably an issue with |
Good evenng @bryevdv ! As I can see other users had the same problem as me dealing with tabs and panels. In my case I developed a whole personal project and in the last step, when putting all together in the dashboard this error arose. I can provide the full project. It is located here: The error is generated when running a second input file without restart the Spyder core. The main idea was to generate several output files in a bucle, which can be performed by modifying the option LecturaIndividual = 'N' in LecturaDirectorio.py or just changingn the input file name and rerun. If someone comes up with any idea to avoid this error I would be very thanked, maybe changing the way to create the output, a different arrangement… whatever. Thank You beforehand. |
I have 2 anaconda environments in Windows 7:
In a jupyter notebook, I have 2 cells of code:
Cell 1
Cell 2
In the
env1
, I could run cell 1, cell 2, and cell 1 again without any problem.However, in
env2
, after executing cell 1, then trying to run cell 2, I got an error :My questions are:
The text was updated successfully, but these errors were encountered: