geo icon indicating copy to clipboard operation
geo copied to clipboard

duckdb geo in Observable

Open neocarto opened this issue 1 year ago • 5 comments

DuckDB is now very much used in Observable. Is it possible to use this extension in this context? If yes, how? https://observablehq.com/@observablehq/duckdb

neocarto avatar Mar 03 '23 10:03 neocarto

Good question, the version of DuckDB used in Observable is based on WASM. I will check how it's possible to use unsigned extension.

blackrez avatar Mar 03 '23 10:03 blackrez

It would be great if it could work.

neocarto avatar Mar 03 '23 12:03 neocarto

For now, it's impossible to use unsigned extension with duckdb-WASM. But there is some interesting change from duckdb-wasm. https://github.com/duckdb/duckdb-wasm/issues/1190

blackrez avatar Mar 20 '23 09:03 blackrez

Hi! Carlo from DuckDB Labs here.

We are actively experimenting with DuckDB Wasm extensions, but for this to be live on Observable a few things will have to happen:

  • Extension loading support is iterated on and eventually becomes part of duckdb-wasm
  • GEO extension can be compiled to Wasm (might requires some hopefully minor modifications)
  • Observable updates duckdb-wasm to not-yet-existing extension-loadable version

I think partially 1 and 2 can be worked in parallel, I will modify extension-template repo with instructions on how to generate the WebAssembly-enabled files, and then I will be very happy to get feedback on from this extension perspective.

Here the trackign issue on extension loading: https://github.com/duckdb/duckdb-wasm/issues/1202, feedback is very welcome also from extension-authors!

carlopi avatar Mar 23 '23 09:03 carlopi

This should work nowadays, right? https://github.com/duckdb/duckdb-wasm/issues/1202#issuecomment-2161428408

tobilg avatar Jun 11 '24 19:06 tobilg