-
Notifications
You must be signed in to change notification settings - Fork 32
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
Bokeh Requirement in Correct File #687
Conversation
After updating Bokeh to the most recent version 0.12.9, the Cost-of-Capital calculator loads but displays an error message. I tested this on my local machine and CCC worked fine using Bokeh 0.12.7, but after upgrading to 0.12.9, I received an error message: One option is to try pinning Bokeh to 0.12.7. Admittedly, this is a sub-optimal solution. However, it would be a top priority to change the plot to move Bokeh up to the most up-to-date version before the next release. |
@hdoupe Most likely updating the version in these link and script tags for the Bokeh widgets will solve the problem. But, in the long run this will keep happening if we do not pin a specific version, since those CDNs are pinned to a specific version. I tried to find a way around that but the updating CDN tags don't seem to be available for the widgets. And, as @martinholmer pointed out, there have been some breaking changes in the latest releases that may still be of concern without a pinned version. |
@hdoupe And of course as soon as I say that I figure out what to do. Should I put up a pull request? Or I can just tell you where to add two lines of code if you like. |
@hayleefay Great, please open a pull request. |
@hayleefay @hdoupe I think the best thing to do is pin the bokeh version. Bokeh is still in activate development and changes frequently. |
@brittainhard @hdoupe The PR I just submitted allows the visualization to work on 0.12.9 and doesn't expressly need a pinned version anymore, but I agree with the decision to pin a version due to development concerns. |
@brittainhard @hayleefay I agree that we should pin it, too. Throwing in a quick fix like this sort of short-cuts the release process. I'm new to managing this process, and I want to make sure that we establish good habits early. So, let's pin the bokeh to 0.12.7 and slate PR #688 for the next release. @hayleefay thanks for the quick response on this issue. |
@hdoupe said:
This is an OK approach only if it is a short-term fix. The versions should ideally be I thought the pull request submitted by @hayleefay made the charts work with with both 0.12.7 and 0.12.9. |
@martinholmer, my latest PR does work with both 0.12.7 and 0.12.9. Barring breaking changes in future versions, a version of bokeh>=0.12.7 will be just fine. Oddly enough there does not appear to be a 0.12.8. |
@hayleefay said in #687:
OK, thanks for the helpful information. So, why isn't PolicyBrain using @brittainhard and @hdoupe, can you please explain? Are you thinking there are elements other than the charts by @hayleefay that will fail when using bokeh 0.12.9? |
@martinholmer said:
@martinholmer, could you explain why you believe >= is preferable to ==? And what are the conditions that need to be met for a project to safely handle >= pinning? |
No description provided.