-
Notifications
You must be signed in to change notification settings - Fork 1
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
Weekly Status Log: Python API #2
Comments
Oct 2:
Issues:
|
Just to say really excited about this and thank you for providing a weekly status log! |
I built upon this to:
The Altair schema sorted the references by topological order, so I assumed we had to do the same. However, I realized that some of the references are cyclical? I would like to ask about this in the meeting. |
My last week's progress:
|
This week's progress for the team:
|
11/6 Updates:
|
Eventually, we want to use a submodule to import schemaapi as in gosling-lang/gos#101. |
11/12 Updates:
|
Disregard this- got it working using altair's _todict function |
modify https://github.com/cmudig/mosaic/blob/main/bin/prepare-examples.js to use new astToPython (you need to write). roughly what the generated python should look like # line.py
from mosaic import Plot, PlotMark, LineY, PlotFrom, ChannelValueSpec, ChannelValue
plot = Plot(
plot = [PlotMark(LineY(
mark="lineY",
data=PlotFrom(from_="aapl"),
x=ChannelValueSpec(ChannelValue("Date")),
y=ChannelValueSpec(ChannelValue("Close"))
))],
width = 680,
height = 200
)
# in tests
assert json_spec == plot.to_dict() |
Creating generate_mosaic_schema_wrapper.py
This is for uwdata#395. Code changes in #10.
The text was updated successfully, but these errors were encountered: