-
Notifications
You must be signed in to change notification settings - Fork 46
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
Port plots to Tucan
#181
Port plots to Tucan
#181
Conversation
This all looks good to me. I will ask just one favor though: instead of updating the whole document, please update only the charts and their output if possible. Only because otherwise the diffs are massive. :) thank you! |
@josevalim done but the diff is still massive due to the included outputs. Should I just change the plotting code (and include the outputs later once this is reviewed)? |
This is out of topic but do you consider it a good practice to have livebook outputs version controlled? Outputs are needed only for the docs, so we could have something like this in aliases: [
docs: [
"livebook.persist_outputs notebooks/*.livemd",
"docs"
]
this way:
you only lose on the |
Yeah, this is tricky. The issue is that those notebooks may also be expensive and take a while to run, no? |
Correct this is the tradeoff. But Alternatively you can just add to the docs the code without the output, and let the user run it. |
Yeah. Definitely food for thought but nothing we can do now anyway. So as long as you only change the VegaLite output, we are fine. Or, if the graph visualization is literally the same (only different order of fields), you can just update the code. Then once we need to re-run the whole guide for another reason, it gets up to date. |
Unfortunately the visualization is not identical, the visual output though is similar. So we have to live with those massive diffs :-). Should I also port the plots of the remaining notebooks? |
Yes, please port! |
|
This is actually a very good reason. No, the wrapper wouldn't be necessary ;) |
Actually, for guide purposes I think the wrapper is nice. We don't have to alias both Vl and Tucan. We just use Tucan and never mention Vl at all? Would that be feasible? |
If it is just an image, should we use |
Yeah, |
Will add it, but |
What I could do here, would be to add a Will try something and let you know. |
@josevalim @msluszniak Ported all the plots except the interactive one in the nearest neighbors notebook since Tucan does not have an API yet for interactive vega lite charts.
|
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.
LGTM! @msluszniak makes the final decision. :)
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 to go ;)
Done :) |
💚 💙 💜 💛 ❤️ |
In the
CHANGELOG
you mention future use ofTucan
, so I ported some plots 😄 .This is still early draft, but I wanted some feedback before continuing.
Comments
linear_regression
are ported for now, if you are ok with this change I will port the rest as wellTucan
API. Notice that we can simplify most plots by removing allset_x/y_domain
calls since by defaultTucan
scatter plots setscale: [zero: false]
#TODOs
for some minor enhancements that should be done before this is considered readyLooking forward for any feedback.