Adam Roberts
06/27/2024, 10:22 AMimport {Deck} from 'npm:<http://deck.gl|deck.gl>';
but to get the mapboxgl overlay (in which we put the maplibre map) we need an extension lib
import {MapboxOverlay} from 'npm:<http://deck.gl/mapbox';|deck.gl/mapbox';>
which throws unable to fetch: <https://cdn.jsdelivr.net/npm/deck.gl@9.0.19/mapbox/+esm>
Adam Roberts
06/27/2024, 12:00 PM.env
file) in a page?Gordon Tu
06/27/2024, 3:03 PMdata-barba="wrapper"
to <div id="observablehq-center" >
(a higher level container) in barba-demo.html
inside dist folder. See here for code and rendered result.
3. I have to click twice to go to the index
page
4. The leave animation does not play.
(I also attached a demo.html
file to show the transition I want to achieve, and this vanilla html+js file is running smoothly)
This might not be something Observable Framework made to do, and I believe some of the issues might be related to barba.js, but I would really appreciate a fresh perspective🫣Ismael Vargas
06/29/2024, 2:12 AMRobert Budzyński
07/08/2024, 2:22 PMAndreas Åkre Solberg
07/09/2024, 9:58 AMexport async function getDataArquero() {
return FileAttachment("../data/datafile.arrow")
.arrayBuffer()
.then((buffer) => aq.fromArrow(buffer));
}
• The traditional aq.loadArrow(url)
will not work with observable framework.
• I also got problems with using FileAttachment(file).arrow()
. Seems that the arrow file format was not accepted.Declan Naughton
07/11/2024, 6:13 PM.md
pages? I understand the vscode extension issue is open, but I guess there might be workarounds through other extensions that put different languages in fenced code blocks? (I'll even consider other editors!)David Gasquez
07/18/2024, 4:19 PM<http://domain.com/static|domain.com/static>
are static and all data is known at buildtime, I want to make loading that as fast as possible.Maxwell Grant
07/23/2024, 2:33 PMZach Bogart
07/23/2024, 6:19 PMFileAttachment
or do I need to read in the file another way? All, the best, thanks!Sam Albers
07/23/2024, 8:14 PMtable = pa.Table.from_pandas(df)
sink = pa.BufferOutputStream()
with pa.ipc.new_file(sink, table.schema) as writer:
writer.write_table(table)
sys.stdout.buffer.write(sink.getvalue().to_pybytes())
Tav McGregor
07/24/2024, 10:08 PMRuntimeError: Catalog Error: Table with name [table name] does not exist!
I'm not sure what I'm doing wrong here, but I assume it has to do with #3?
Hoping to be able to pass this data to plot, so I can visualize some interesting patterns.
For reference, I am using this eCommerce dataset from Kaggle. https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce
Originally I was using the SQLite file, but that doesn't play nice with Github and I don't want to host the file myself.Zach Bogart
07/24/2024, 10:21 PMJack Ivers
07/29/2024, 6:21 PMdeploy.json
but the docs say this is generated by npm run build
… so how / where would I make one of our projects show up as a different project without losing anything?
My guess is npm init @observablehq
but want to make sure that’s non-destructive?Jack Ivers
07/31/2024, 12:46 AMnpm run build
and its output.
During the build process, I get a summary of the size of each page’s output, such as this (project built from the hello-framework example with one added page):
┌ (4 pages) Page Imports Files
├── example-dashboard 11 kB 568 kB 738 kB
├── example-report 13 kB 564 kB 24 kB
├── index 11 kB 567 kB 130 kB
└── tsip-poc-dashboard 22 kB 1.109 MB 1.399 MB
This is something under 2Mb of “built stuff” ….
When I look in the /dist directory and see what’s out there, the total size is ~49Mb, which is comes mostly from the ~47Mb _npm
directory … of which @duckdb is ~41Mb.
I’m trying to get my head around “page size / page load time” in the sense that I am familiar with in static site generators like Hugo — the “under 2Mb” seems reasonable for a group of highly interactive HTML pages with a dose of locally-loaded data (most of the total); but the 49Mb of output in /dist seems way off … with _npm
being the root cause … trying to get my head around this.Piotr Pasza Storożenko
08/06/2024, 9:57 AM```jsx
import { Button } from 'basic-component';
jsx
display(<Button label="Click me" />);
```
into the index.md
file in the Observable framework, I get the errors:
SyntaxError: The requested module '../react@18.3.1/index.js' does not provide an export named 'default'
RuntimeError: The requested module '../react@18.3.1/index.js' does not provide an export named 'default'
The observable project is just a simple output of npm init @observablehq
(so 1.9.0) with
npm install <mailto:git+git@github.com|git+git@github.com>:Appsilon/iu-basic-component.git
and my idea was to use the node imports in the app.
The basic-component repo: https://github.com/Appsilon/iu-basic-component
Do you have any ideas what might be wrong here? Maybe the build process is not performed correctly? Or maybe something else.
Any hints appreciated ^^Jack Ivers
08/06/2024, 5:13 PMMike Bostock
08/06/2024, 11:54 PMYuri Vishnevsky
08/07/2024, 6:08 PMnpm run dev
but I see the following when I load the page in my browser, including in an Incognito window. A colleague of mine seems to be able to load it without this error, but then sees an error when selecting a Parquet file. I don't see the parquet-wasm-related error locally when using a dev build, but I do see it when using a production build (npm run build
) hosted locally. Example .parquet file attached. The parquet file is being loaded using FileAttachment(...).parquet()
.Frank Contrepois
08/13/2024, 12:58 PMMike Bostock
08/15/2024, 12:43 AMconvert
command and more generally transitioning code from Observable notebooks to Framework: https://observablehq.com/framework/convertDavid Gasquez
08/15/2024, 9:42 AMz
and that expects a long dataframe. Not sure what is the simplest way to do that in JS without relying on other libraries (arquero). First time dealing with JS coming form Python! 🙈Gordon Tu
08/16/2024, 11:22 PMMutable
or useState
? It seems like I can use mutable to control updates, and that would create a truly stateless component. If I use both, that creates unnecessary rendering.
2. Is display
the only way to embed React components in the markdown file? If I want to place the React UI in a very specific location(see attached picture), what should I do? Should I just create everything in React??(em...as much as I hate using React)Kryspin Ziemski
08/21/2024, 7:25 PMKryspin Ziemski
08/21/2024, 7:41 PMKryspin Ziemski
08/21/2024, 7:42 PMKryspin Ziemski
08/21/2024, 7:43 PMKryspin Ziemski
08/21/2024, 7:44 PMDeclan Naughton
08/21/2024, 10:23 PM