You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @HumphreyYang, thanks for pointing it out. I had already tried the same
!pip install --upgrade kaleido
Yet, I end up getting the error. However this time, the error is about the incompatible versions of plotly and kaleido. Here's a snapshot:
Also, once I try to upgrade plotly using
!pip install plotly==6.1.1 --upgrade
Here's the error that comes up:
Re: self assigning task -- I would love to work on cleaning up the codes. But for some reason I can't self assign the task, possibly because I don't have the permissions. @mmcky could you please help me out with this?
Side notes: @mmcky , the greek letters used as variables in the code are rendered in a weird italic font. They should be rendered in the same font as the rest of the code, as they typically are in a code editor. Would you mind looking into this -- maybe open a separate issue?
Another side note: This is a good example of a lecture where we could break up the large class as discussed earlier and then explain functions as we introduce them. This could also be a separate issue.
Activity
HumphreyYang commentedon Aug 5, 2025
Many thanks @bishmaybarik!
I think we need to add
pip install --upgrade kaleidofor this lecture.You can see an example here:
lecture-python-advanced.myst/lectures/calvo_machine_learn.md
Lines 409 to 415 in 51477f3
Would you like to self-assign this task and have a go at cleaning up the code?
bishmaybarik commentedon Aug 5, 2025
Hi @HumphreyYang, thanks for pointing it out. I had already tried the same
Yet, I end up getting the error. However this time, the error is about the incompatible versions of plotly and kaleido. Here's a snapshot:
Also, once I try to upgrade plotly using
Here's the error that comes up:
Re: self assigning task -- I would love to work on cleaning up the codes. But for some reason I can't self assign the task, possibly because I don't have the permissions. @mmcky could you please help me out with this?
HumphreyYang commentedon Aug 5, 2025
Thanks @bishmaybarik,
To fix this, I think we can convert it as HTML
This generates an interactive plot as HTML code, and when I built the lecture, we could interact with the figure in the QuantEcon lecture (CC @mmcky):
Colab works as well on my side.
bishmaybarik commentedon Aug 5, 2025
Many thanks @HumphreyYang. Having this version with interactive graph solves the problem.
Thanks again :-)
jstac commentedon Aug 5, 2025
Hi @HumphreyYang @bishmaybarik @mmcky
Thanks @bishmaybarik for flagging the problem and @HumphreyYang for the solution. Very nice work.
However, do we really want to be adding this interactive stuff here?
Whenever we add complexity we eventually run into problems with PDFs, Colab, maintenance, etc.
I have a very strong dislike for complexity.
I suggest we drop the interactive view and just show the plot statically for a couple of different values of the correlation parameter.
It might also be the case that the impact is clearer after switching from 3D to contour plots.
@thomassargent30 might have views on this.
Side notes: @mmcky , the greek letters used as variables in the code are rendered in a weird italic font. They should be rendered in the same font as the rest of the code, as they typically are in a code editor. Would you mind looking into this -- maybe open a separate issue?
Another side note: This is a good example of a lecture where we could break up the large class as discussed earlier and then explain functions as we introduce them. This could also be a separate issue.