Sean Westgate
11/16/2022, 10:24 AMkedro-viz/readme
it suggests using a standalone React component with the pipeline.json
as prop. I tried it, but couldn't get it to work - I am not familiar with React. Do you have a simple example using a static website or do you need a proper React environment?
Many thanksdatajoely
11/16/2022, 2:20 PMSean Westgate
11/16/2022, 2:24 PMTynan
11/17/2022, 11:48 AMdatajoely
11/17/2022, 11:49 AMTynan
11/17/2022, 11:50 AMSean Westgate
11/17/2022, 4:05 PMTynan
11/17/2022, 4:07 PMAndrew Stewart
02/16/2023, 12:08 AMkedro viz --save-file=pipeline.json
and then you somehow use that pipeline.json
w/ a copy of the contents of https://github.com/tynandebold/kedro-viz-standalone somewhere ?
tand then somehow use that json file in a directory w/Sean Westgate
02/20/2023, 3:47 PMnpm start
in the root dir after install node.js and it should show the react component in your browser with the demo data.
to then import your own data (pipeline.json
)change
import { demo } from "./demo";
to
var demo = require('./pipeline.json');
Andrew Stewart
02/23/2023, 10:17 PMTynan
02/24/2023, 9:26 AMAndrew Stewart
02/24/2023, 6:42 PMTynan
03/28/2023, 3:59 PMkedro viz --save-file
in the action, save that to a known location in the repo, and then serve a React application via GitHub pages that uses that save data to populate Kedrp-VizAndrew Stewart
04/14/2023, 6:08 PMkedro viz --save-file
?Tynan
04/19/2023, 10:00 AMAndrew Stewart
04/28/2023, 4:55 PMTynan
05/02/2023, 9:21 AMAndrew Stewart
05/02/2023, 4:17 PMbuild
directory not as a web root but as a subdirectory of some larger site. By default all the paths are absolute to the web root. I found some guidance on how to modify that behavior : https://stackoverflow.com/questions/51692588/react-js-running-npm-run-build-with-custom-paths
It sorta works but I suspect there are some things in the code that are basically hard-coded to absolutes? I know next to nothing about frontend programming, so I'm trying to poke around it but so much of this kind of logic seems to be built into the actual package build tooling.