Skip to content

Commit 75584f2

Browse files
authored
Notebooks (#942)
1 parent 56cb69b commit 75584f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1845
-712
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
~/.cargo
3535
pgml-extension/target
3636
~/.pgrx
37-
key: ${{ runner.os }}-rust-2-${{ hashFiles('pgml-extension/Cargo.lock') }}
37+
key: ${{ runner.os }}-rust-3-${{ hashFiles('pgml-extension/Cargo.lock') }}
3838
- name: Submodules
3939
run: |
4040
git submodule update --init --recursive

pgml-dashboard/.cargo/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.x86_64-unknown-linux-gnu]
2+
rustflags = ["-C", "link-args=-Wl,-undefined,dynamic_lookup,-fuse-ld=/usr/bin/mold"]

pgml-dashboard/Cargo.lock

Lines changed: 237 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pgml-dashboard/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ num-traits = "0.2"
2727
once_cell = "1.18"
2828
rand = "0.8"
2929
regex = "1.9"
30-
rocket = { git = "https://github.com/SergioBenitez/Rocket", features = ["secrets"] }
30+
rocket = { git = "https://github.com/SergioBenitez/Rocket", features = ["secrets", "json"] }
3131
sailfish = "0.5"
3232
scraper = "0.17"
3333
serde = "1"
@@ -42,6 +42,7 @@ tokio = { version = "1", features = ["full"] }
4242
yaml-rust = "0.4"
4343
zoomies = { git="https://github.com/HyperparamAI/zoomies.git", branch="master" }
4444
pgvector = { version = "0.2.2", features = [ "sqlx", "postgres" ] }
45+
console-subscriber = "*"
4546

4647
[build-dependencies]
4748
md5 = "0.7"

pgml-dashboard/src/forms.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use rocket::fs::TempFile;
2+
use serde::Deserialize;
23

34
#[derive(FromForm)]
45
pub struct Notebook<'a> {
@@ -16,3 +17,8 @@ pub struct Upload<'a> {
1617
pub file: TempFile<'a>,
1718
pub has_header: bool,
1819
}
20+
21+
#[derive(Deserialize)]
22+
pub struct Reorder {
23+
pub cells: Vec<i64>,
24+
}

0 commit comments

Comments
 (0)