-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import parquet-wasm from local bundle rather than CDN #457
Comments
I agree, this change would be nice. But it's unclear to me how to get a reference to the local URL within Jupyter to the current bundle. I asked in the anywidget discord |
Thanks @kylebarron, I was able to find a workaround that might be relevant here kylebarron/parquet-wasm#488 (comment) |
Trevor responded on discord that serializing the wasm on the model is probably the best approach |
Until #461 gets merged, the easiest way (imho) is to let user specify a different cdn url (e.g. http://localhost:8888/files/). For now, we need to resort to modifying the js bundle. |
What's your use case where you can't use the default CDN? |
Offline or standalone usage
…On Fri, Oct 11, 2024, 4:47 AM Kyle Barron ***@***.***> wrote:
What's your use case where you can't use the default CDN?
—
Reply to this email directly, view it on GitHub
<#457 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFEBYWBHLNJEADOMVJ4X33Z23RWFAVCNFSM6AAAAABPXMRYFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWGAYDSOJSGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
But offline you won't be able to see the base map; does that not matter for you? |
Usually I have a copy of the tiles for performance/practical reasons - it is faster than getting over the internet, while in other cases I am generating them anyway. If BitmapTileLayer (which already works with locally hosted Jupyter file urls) can be expanded to support/include pmtiles it would be perfect (sounds like it is in the works with #494) |
Hi, is it possible to import
parquet-wasm
using esbuild rather than a CDN? I see thatparquet-wasm
is a dependency in the package.jsonlonboard/package.json
Lines 5 to 20 in c8cf2e1
but lonboard is also referencing a CDN here:
lonboard/src/parquet.ts
Lines 2 to 19 in c8cf2e1
I ask because I'm trying to test out lonboard on a service that prevents me from making front-end requests to CDNs (I would have to request the URL be added to an allowlist, but I want to see if I can avoid this by bundling the code with esbuild but I was running into errors when I tried to use the bundled version - kylebarron/parquet-wasm#488).
The text was updated successfully, but these errors were encountered: