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
Visualization with plotly #403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Thank you very much for that!
- I made a few comments and suggestions.
- Please add plotly and all other necessary packages (ipywidgets, ..?) to the environment file
environment.yml
. This is the reason that the tests are failing. - Please add your contribution to
changes.rst
- I get the error below when running the HowTo and no plot is shown. Do you have any idea? (Might be also an error on my end .. I haven't used plotly so far)
- I haven't had a closer look at the HowTo. Let's just leave it as is for now until we agreed on the function itself.
C:\.conda\envs\gettsim\lib\site-packages\jupyter_client\session.py:718: UserWarning:
Message serialization failed with:
Out of range float values are not JSON compliant
Supporting this message is deprecated in jupyter-client 7, please make sure your message is JSON-compliant
Hi ! :) I just took a look at the HowTo Guide and when running it through I always got the error below.
|
Hi we have made changes accordingly, except for the issue with if indentation We consider it important to call @LauraGergeleit we are not completely sure what is the reason for the problem you face, as for us code works on both of computers. We can just give some suggestion that may help. We found that, in previous versions of environment this part of code ```
Probably the error you receive is also connected to this issue. Could you please try the new version and see if that works now or not? |
Thanks, yes, maybe it is a problem on may end. However, I tried your suggestion and changed the code (see below) but still get the same error message when running the HowTo-File.
|
I changed it back to the original version without the string-conversion. @sofyaakimova @effieHAN, do you remember what made you change that? Runs without it in a freshly created environment -- if that is different for any one of you, we'll need to investigate further. @LauraGergeleit, my hunch is that the changed code did not work for you because of a missing kernel restart. Could you test again, please? |
Thanks! Will be hard to track down what exactly the difference relative to the current version is, let's continue watching it whether any error like that pops up again. |
Codecov Report
@@ Coverage Diff @@
## main #403 +/- ##
==========================================
+ Coverage 92.13% 92.42% +0.29%
==========================================
Files 76 76
Lines 3597 3606 +9
==========================================
+ Hits 3314 3333 +19
+ Misses 283 273 -10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I just tried the latest version and on my computer it works now without string conversion. No idea what caused the problem before. |
I guess you were right, now it runs through! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the work so far!
I made a couple of comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, thanks! I pushed a commit with small changes to tutorial and the docstring and made very few new comments. I have one bigger open question
- in case I select
hover_source_code=True
what happens to the node name/label in case those are not shown for all nodes ((len(names) > 10) or (show_labels is False)
). If I see correctly, we don't show the name of the node at all in this case? Can we improve on the current behavior? But it is not super important as it is only an experimental feature.
Otherwise, we will be able to merge very soon!
Hi! Introduction:
Selectors:
De-selecting Nodes:
Ancestors and Descendants:
Orientation:
Labels:
Hover info (source code):
I hope that helps. In case you have questions, left me know and please note that some of the points are just my suggestions. |
I just had one more idea. Could we please change the possible values of the argument
If you think that makes sense, please change it in code, docstring, and tutorial |
Hi Christian, we made the changes you and Laura made correspondingly. Could you please have a look? |
Dear Sofya, Thank you very much! Sorry for the late response. I was very busy this week, but will be faster from now on.
That sounds great! I have two requests:
Best, Christian |
…stitute-of-labor-economics/gettsim into visualization-with-plotly
…tring in grundrente.
With For now, I fixed sphinx at 5.1.0 (and python at 3.8 in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All done now and we can merge.
Thanks for the great work!
What problem do you want to solve?
Replace Bokeh with plotly for visualization.
The changes are made in the documentation file and visualization py file.