Skip to content

Commit d77cf93

Browse files
authored
Merge pull request #2718 from finos/load-order-opt
Fix docs site serialized loading, docs.rs gen
2 parents 4b31e92 + f464bed commit d77cf93

39 files changed

Lines changed: 1037 additions & 967 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,4 @@ rust/perspective-server/cmake
247247
rust/perspective-python/*.data
248248
# rust/perspective-python/perspective.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/package.json
249249
rust/perspective-viewer/docs/exprtk.md
250+
rust/perspective-server/docs/lib_gen.md

.vscode/settings.default.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
},
88
"python.formatting.provider": "black",
99
"rust-analyzer.server.extraEnv": {
10+
"PSP_ROOT_DIR": "../..",
11+
"PSP_DISABLE_CPP": "1",
1012
"RA_LOG": "rust_analyzer::reload=info",
1113
"CARGO_TARGET_DIR": "${workspaceFolder}/perspective-viewer/dist/analyzer"
1214
},
@@ -27,6 +29,9 @@
2729
"rust/target"
2830
],
2931
"rust-analyzer.checkOnSave": true,
32+
"rust-analyzer.check.extraEnv": {
33+
"PSP_DISABLE_CPP": "1"
34+
},
3035
"rust-analyzer.check.overrideCommand": [
3136
"cargo",
3237
"clippy",

Cargo.lock

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

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ and/or [Jupyterlab](https://jupyterlab.readthedocs.io/en/stable/).
1818

1919
### Features
2020

21-
- A fast, memory efficient streaming query engine, written in
22-
C++ and compiled for both [WebAssembly](https://webassembly.org/) and
21+
- A fast, memory efficient streaming query engine, written in C++ and compiled
22+
for both [WebAssembly](https://webassembly.org/) and
2323
[Python](https://www.python.org/), with read/write/streaming for
2424
[Apache Arrow](https://arrow.apache.org/), and a high-performance columnar
25-
expression language based on [ExprTK](https://github.com/ArashPartow/exprtk).
25+
expression language based on
26+
[ExprTK](https://github.com/ArashPartow/exprtk).
2627

2728
- A framework-agnostic User Interface packaged as a
2829
[Custom Element](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements),
29-
powered either in-browser via WebAssembly or virtually via
30-
WebSocket server (Python/Node).
30+
powered either in-browser via WebAssembly or virtually via WebSocket server
31+
(Python/Node).
3132

3233
- A [JupyterLab](https://jupyter.org/) widget and Python client library, for
3334
interactive data analysis in a notebook, as well as _scalable_ production
@@ -58,6 +59,7 @@ and/or [Jupyterlab](https://jupyterlab.readthedocs.io/en/stable/).
5859

5960
### Community / Media
6061

62+
- [Streaming Cross-Sectional Data Visualization with Perspective + Spark | Tim Bess/Tim Paine, Data + AI Summit 2024](https://www.youtube.com/watch?v=lDpIu4dnp78)
6163
- [Streaming, cross-sectional data visualization in JupyterLab | Junyuan Tan, JupyterCon 2020](http://www.youtube.com/watch?v=IO-HJsGdleE)
6264
- [Perspective in 3D | Andrew Stein, Open Source in Finance Forum NYC 2022](https://www.youtube.com/watch?v=0ut-ynvBpGI)
6365
- [Build an order book simulation with Perspective | Andrew Stein, FINOS Open Source in Fintech Meetup 2021](https://www.youtube.com/watch?v=no0qChjvdgQ)

docs/build.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const path = require("node:path");
1717
const mkdirp = require("mkdirp");
1818
const EXAMPLES = require("./src/components/ExampleGallery/features.js").default;
1919

20-
const perspective = import("@finos/perspective/dist/cdn/perspective.js");
20+
const perspective = import("@finos/perspective/dist/esm/perspective.node.js");
2121

2222
const DEFAULT_VIEWPORT = {
2323
width: 400,
@@ -111,11 +111,13 @@ async function run() {
111111
fs.readdirSync("static/features").length === 0
112112
) {
113113
console.log("Generating feature screenshots!");
114-
mkdirp(path.join(__dirname, "static/features"));
115-
const { WebSocketServer } = await perspective;
116-
const server = new WebSocketServer({
114+
fs.mkdirSync(path.join(__dirname, "static/features"), {
115+
recursive: true,
116+
});
117+
const x = await perspective;
118+
const server = new x.WebSocketServer({
117119
assets: [
118-
path.join(__dirname, ".."),
120+
path.join(__dirname, "."),
119121
path.join(__dirname, "../node_modules"),
120122
],
121123
});

0 commit comments

Comments
 (0)