-
Hi! I'd like to work with the newest version of the standard library
Do I have to wait for quarto to update the standard library, or is there a way that I import a newer version of Plot locally? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
We try to update the OJS standard libraries at every release. 0.6.1 was released 3 days ago. It's not practical for us to track them this closely given the rest of the things we want to do in quarto.
Try
Note that embedding observable is not really a practical choice in Quarto, because you'll need the full runtime, a custom parser, etc. |
Beta Was this translation helpful? Give feedback.
-
Like so? import { Plot } from "https://cdn.skypack.dev/@observablehq/plot" (this does not work) |
Beta Was this translation helpful? Give feedback.
-
FYI, I made a PR to document this: |
Beta Was this translation helpful? Give feedback.
Sorry, I always forget that the standard syntax for imports doesn't work for observable. In addition, skypack is currently broken for d3 v7.7.0, which Plot uses. Use this instead: