Where's the data?: Clarify using Database Connectors with Notebook Kit #70
-
I'm a little confused about Database Connectors and where the data source is located when using Notebook Kit. I'd appreciate some clarification about possible workflows using this new setup. I was reproducing the taxi example and that works well locally:
Now I want to try to recreate the deployment result, like on the connectors page (do an analysis and share). I got confused in the section on Notebook Kit not having the drivers installed and further along. Let's say I want to share my lovely taxi results by building them into a site that deploys using GitHub (npm build into dist). Here's what I'm running into locally: Starting simple
Running preview with Notebook Kit 👇 Going further
Appreciate your help, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Are you running an old version of Notebook Kit? What version of Notebook Kit are you running? (The error suggests it’s looking for |
Beta Was this translation helpful? Give feedback.
-
As to your other questions…
You can add a file to your Line 4 in 77dff68 (You could also put the large file into the
Yes, I have the Parquet file on my local computer, and I have committed the cached query results to source control. You can bypass what is listed in your git add -f docs/.observable/cache/duckdb-3dax5o7ca20m13tp.json docs/.observable/cache/duckdb-3i571kxkj7d5iqkm.json docs/.observable/cache/duckdb-3te2snbouq6be1hp.json docs/.observable/cache/duckdb-4nmx131pqy4guuau.json The reason that I did this is to avoid needing to either store the large Parquet file in git, or to download it every time we build the site in CI. Either of those are certainly possible, but it would make building the documentation slower and less reliable, and since these results never change (unless I re-run the queries), I wanted to keep things simple.
For point-in-time (stable) analysis, especially if you are not collaborating on analysis, it’s reasonable to commit the saved query results to git; that is what I have done for the documentation site. This is reasonable even if you ignore the |
Beta Was this translation helpful? Give feedback.
As to your other questions…
You can add a file to your
.gitignore
file if you want to avoid adding it to your repository, as we do here:notebook-kit/.gitignore
Line 4 in 77dff68
(You could also put the large file into the
.observable/cache
file where it can live alongside the cached query results, and just be careful not to accidentally delete it.)