juba / pyobsplot

Observable Plot in Jupyter notebooks and Quarto documents
https://juba.github.io/pyobsplot/
MIT License
184 stars 8 forks source link

Deprecate `kwargs` syntax ? #34

Closed juba closed 1 month ago

juba commented 1 month ago

The kwargs alternative syntax allows to define a plot with keyword arguments instead of a dict:

op(
    grid = True,
    color = {"legend": True},
    marks = [
        Plot.dot(data, {"x": "x", "y": "y", "fill": "type"})
    ],
)

I'm not sure this syntax is very useful, and it tends to make some of the code less readable. Maybe it could be removed ?

juba commented 1 month ago

Syntax has been deprecated with the new "format" API.