juba / pyobsplot

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

question about ObservableHQ #20

Closed cornhundred closed 11 months ago

cornhundred commented 11 months ago

Hi, I have a few questions related to ObservableHQ and how you've built pyobsplot:

I'm curious if I could reproduce something similar to this widget using notebooks I've made on ObservableHQ.

juba commented 11 months ago

Hi, this widget only allows to produce charts with Observable Plot, it has nothing to do with Observable notebooks (except that Plot is developed by Observable). So pyobsplot won't allow you to import notebook cells. And we don't use the observable runtime either.

I created an R package to import Observable notebook cells, but it will not solve your problem if you're using Python...

cornhundred commented 11 months ago

Thanks for the info! Yes, I've seen this robservable library and used the similar library for embedding ObservableHQ plots Python https://github.com/thomasballinger/observable-jupyter and the widget version https://github.com/thomasballinger/observable-jupyter-widget. I'm wondering if we can do something similar using anywidget. I'll definitely check out this repo too. It looks great :)