juba / pyobsplot

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

Deprecate `kwargs` syntax ? #34

Closed juba closed 5 months ago

juba commented 5 months 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 5 months ago

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