This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Kedro on PyCafe is sort of possible #4271
Labels
Issue: Feature Request
New feature or improvement to existing feature
Greetings friends 😀 and FYI @maxschulz-COL @maartenbreddels
Just wanted to report that it is sort of possible to run Kedro in the browser using PyCafe! ☕ 🚀 There's a couple of workarounds needed but for the spaceflights project at least it's not too hard. Take a look here for my example project: https://py.cafe/antonymilne/kedro-vizro-dashboards
I did
kedro new
withkedro==0.19.9
and used the spaceflights example code (the project is in the folder descriptively namedblah
). The project is run inapp.py
. At the moment PyCafe requires some kind of app so there's also a simple Vizro app just so that the kedro code can run. Of course in reality this could be an actual interesting dashboard reporting results of the pipeline.The catches/workarounds that I noticed with this simple example. No doubt there will be further difficulties for more realistic projects, and I didn't even try to install all the requirements in
blah/requirements.txt
, just took what looked like the bare minimum to get the pipeline to run.antlr4-python3-runtime
thatomegaconf
currently requires. This is fixed inomegaconf
2.4.0 but that's only in dev release. I see that you're aware of this difficulty already in Relax dependency onantlr-python3-runtime
facebookresearch/hydra#2699 and Release schedule v2.4 omry/omegaconf#1158. So this is why I setomegaconf==2.4.0.dev3
in the requirements.txt, which appears to work wellpre-commit-hooks
hasruamel-yaml-clib
as a transitive dependency, which doesn't have a wheel file available. I was actually quite surprised to seepre-commit-hooks
as a kedro requirement, and I see this was a bit of a controversial addition at the time (Sortrequirements.txt
based on package name only #3436). It's easy to fix if you don't actually want to run pre-commit though, just withruamel-yaml-clib # mock
in requirements.txt.pandas.CSVDataset
orpandas.ExcelDataset
.No module named '_multiprocessing'
I mocked out the parallel runner.The text was updated successfully, but these errors were encountered: