https://kedro.org/ logo
Join the conversationJoin Discord
Channels
advanced-need-help
announcements
beginners-need-help
introductions
job-posting
plugins-integrations
random
resources
welcome
Powered by Linen
advanced-need-help
  • d

    datajoely

    01/24/2022, 7:01 PM
    Amazing πŸ’ͺ !
  • u

    user

    01/27/2022, 5:36 PM
    Facing kedro-airflow validation error from pydantic when running in docker https://stackoverflow.com/questions/70883117/facing-kedro-airflow-validation-error-from-pydantic-when-running-in-docker
  • d

    datajoely

    01/27/2022, 6:08 PM
    @User any ideas on this one? It seems to be a
    KedroMlflowConfig
    error?
  • g

    Galileo-Galilei

    01/27/2022, 8:09 PM
    I'll answer directly on stack overflow, thanks for the information!
  • u

    user

    02/06/2022, 5:16 PM
    How to install new package with conda without breaking the existing Kedro installation? https://stackoverflow.com/questions/71009664/how-to-install-new-package-with-conda-without-breaking-the-existing-kedro-instal
  • c

    ChainYo

    02/09/2022, 6:07 PM
    I'm trying to deploy a standalone kedro viz app with
    React App
    project but when I run
    npm start
    I got no errors but nothing appears in the browser. Is there a special thing to add to React to make it works ? I tried this code:
    js
    import './App.css';
    import KedroViz from '@quantumblack/kedro-viz';
    import json from './training_pipeline.json';
    
    const PipelineViz = () => <KedroViz data={json} />;
    
    export default PipelineViz;
  • c

    ChainYo

    02/09/2022, 6:08 PM
    the other code files are the basic ones generated by react app by default
  • l

    limdauto

    02/09/2022, 7:39 PM
    hey in theory this should work. Might be a bug in the JSON. let me try it out
  • l

    limdauto

    02/09/2022, 7:39 PM
    out of curiosity, which app are you building?
  • l

    limdauto

    02/09/2022, 7:40 PM
    as in how does Kedro-Viz fit in? πŸ˜„
  • l

    limdauto

    02/09/2022, 7:40 PM
    or are you just interested in having a kedro viz up and running somewhere?
  • c

    ChainYo

    02/09/2022, 7:40 PM
    Let me link you the repo code
  • l

    limdauto

    02/09/2022, 7:40 PM
    oh that'd be great
  • c

    ChainYo

    02/09/2022, 7:41 PM
    https://github.com/ChainYo/make-us-rich/tree/master/src/viz
  • d

    datajoely

    02/09/2022, 7:41 PM
    Love the title
  • d

    datajoely

    02/09/2022, 7:42 PM
    and that looks awesome
  • c

    ChainYo

    02/09/2022, 7:43 PM
    This is possible because Kedro is awesome. I’m actually learning prefect to link it with the training kedro pipeline πŸ‘Œ
  • d

    datajoely

    02/09/2022, 7:44 PM
    There are some docs on working with prefect here if useful https://kedro.readthedocs.io/en/stable/10_deployment/05_prefect.html
  • c

    ChainYo

    02/09/2022, 7:44 PM
    It’s obviously ironic πŸ€—
  • c

    ChainYo

    02/09/2022, 7:44 PM
    Yes I’m digging it πŸ‘Œ
  • l

    limdauto

    02/09/2022, 7:54 PM
    this is... amazing. re kedro-viz, if you just want it up and running as a front for a project, I recommend dockerising it, which judging on your profile might be something you'd like. Here is an example dockerfile: https://github.com/kedro-org/kedro-viz/blob/main/demo-project/Dockerfile
  • l

    limdauto

    02/09/2022, 7:55 PM
    Bit of a caveat: we use this to deploy our demo site so there is some hack, but as far as docker goes, it's very straightforward
  • c

    ChainYo

    02/09/2022, 7:55 PM
    Oh this way I can avoid Reactjs right ?
  • l

    limdauto

    02/09/2022, 7:55 PM
    yea
  • l

    limdauto

    02/09/2022, 7:56 PM
    you dockerise the project, use
    kedro viz
    as entrypoint: https://github.com/kedro-org/kedro-viz/blob/main/demo-project/Dockerfile#L10
  • c

    ChainYo

    02/09/2022, 7:56 PM
    I think I missed this file, because I tried to dockerize myself the app but it failed ahah, thanks for the link πŸ‘ŒπŸ‘Œ
  • l

    limdauto

    02/09/2022, 7:57 PM
    np lmk if I can help. I'm thinking of writing a guide as well on how to back this with a real database (we have embedded sqlite at the moment) so you can actually persist your run, adding auth, etc.
  • c

    ChainYo

    02/09/2022, 9:29 PM
    It doesn't explain how to add
    extra_params
    to the Session with prefect.
  • c

    ChainYo

    02/09/2022, 9:31 PM
    python
    @click.command()
    @click.option("-p", "--pipeline", "pipeline_name", default=None)
    @click.option("--env", "-e", type=dict, default=None)
    @click.option("--params", type=dict, default=None)
    def build_and_register_flow(pipeline_name, env, params):
        """Register a Kedro pipeline as a Prefect flow."""
        project_path = Path.cwd()
        metadata = bootstrap_project(project_path)
    
        session = KedroSession.create(project_path=project_path, env=env, extra_params=params)
  • c

    ChainYo

    02/09/2022, 9:31 PM
    Could this work ? But I think I can't use this extra command with the
    Prefect
    UI, but i'm not sure
Powered by Linen
Title
c

ChainYo

02/09/2022, 9:31 PM
Could this work ? But I think I can't use this extra command with the
Prefect
UI, but i'm not sure
View count: 1