juba / pyobsplot

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

question about ObservableHQ #20

Closed cornhundred closed 1 year ago

cornhundred commented 1 year 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 1 year 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 1 year 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 :)