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
beginners-need-help
  • d

    DhruvK

    07/23/2021, 5:47 PM
    So git is essential for enabling good practices
  • d

    datajoely

    07/23/2021, 5:47 PM
    Great so running
    git init
    will initialise the folder and stop giving the warning
  • d

    datajoely

    07/23/2021, 5:47 PM
    Yes
  • d

    DhruvK

    07/23/2021, 5:48 PM
    Let me check installating git and then run kedro info
  • d

    DhruvK

    07/23/2021, 5:48 PM
    It's not warning, I am having exception
  • d

    DhruvK

    07/23/2021, 5:49 PM
    Export git_python_refresh=quiet
  • d

    datajoely

    07/23/2021, 5:50 PM
    Can you post a screenshot?
  • d

    DhruvK

    07/23/2021, 5:51 PM
    message has been deleted
  • d

    datajoely

    07/23/2021, 5:53 PM
    Hmm okay so you can run the export command to suppress this
  • d

    datajoely

    07/23/2021, 5:53 PM
    There are some solutions here https://github.com/gitpython-developers/GitPython/issues/816
  • d

    datajoely

    07/23/2021, 5:53 PM
    But it looks to be something to do with how git is set up on you machine
  • d

    DhruvK

    07/23/2021, 6:04 PM
    Yup thanks
  • d

    DhruvK

    07/23/2021, 6:56 PM
    I am trying to run spaceflight tutorial, when I am running kedro run, I am getting unsual error
  • d

    DhruvK

    07/23/2021, 6:56 PM
    message has been deleted
  • d

    DhruvK

    07/23/2021, 6:56 PM
    Looks like pandas issue
  • d

    DhruvK

    07/23/2021, 6:56 PM
    I have tried reinstalling pandas
  • d

    DhruvK

    07/23/2021, 6:56 PM
    Didn't work
  • w

    waylonwalker

    07/24/2021, 12:53 AM
    Looks like you have named your project pandas. notice the
    src/pandas
    directory. I'ts trying to import
    DataFrame
    from your project. The easiest fix is going to be to render a new template with a different name that is unique to your project and does not overlap any other libraries that you have installed. You can manually rename it, but without knowledge of everywhere that variable gets rendered from the template it is going to be difficult to change.
  • a

    Anish Shah @ WANDB

    07/26/2021, 6:25 PM
    Super quick question, how do you define
    header: None
    for a Pandas dataset from the Data Catalog? I can't coerce the None type needed to pass into the
    read_csv
    function
  • d

    datajoely

    07/26/2021, 6:48 PM
    Hi @User you’re looking for the
    load_args
    key
    load_args:
        header: None
  • a

    Anish Shah @ WANDB

    07/26/2021, 6:51 PM
    Hey @User When I set
    header: None
    i get the error
    DataSetError: Failed while loading data from data set CSVDataSet(filepath=DATASET.txt, load_args={'delimiter':  \+\+\+\$\+\+\+ , 'encoding': unicode_escape, 'header': None}, protocol=file, save_args={'index': False}).
    header must be integer or list of integers
    I figure its because the dataset loader doesn't coerce None into None object (I could be wrong though)
  • d

    datajoely

    07/26/2021, 6:53 PM
    Can you try an alternative YAML null value? https://stackoverflow.com/a/34089604
  • d

    datajoely

    07/26/2021, 6:56 PM
    this works apparently
  • a

    Anish Shah @ WANDB

    07/26/2021, 6:56 PM
    That worked! @User
  • d

    datajoely

    07/26/2021, 6:56 PM
    💪 good luck!
  • j

    jcasanuevam

    07/27/2021, 10:17 AM
    Hello! Is there a way to work with Jupyter Notebbok inside VSCode? In other words, can I activate the kernel set with 'kedro jupyter notebook' command inside VSCode? I guess no... 😦
  • d

    datajoely

    07/27/2021, 10:45 AM
    Let me check if anyone in the team has done this before
  • d

    datajoely

    07/27/2021, 10:47 AM
    The other option is to start a regular Jupyter session and just do the set up piece yourself
    from pathlib import Path
    from kedro.framework.session import KedroSession
    from kedro.framework.session.session import _activate_session
    
    current_dir = Path.cwd()  # this points to 'notebooks/' folder
    project_path = current_dir.parent  # point back to the root of the project
    session = KedroSession.create("<your-kedro-project-package-name>", project_path)
    _activate_session(session)
    context = session.load_context()
  • d

    datajoely

    07/27/2021, 10:47 AM
    We document how to do it here https://kedro.readthedocs.io/en/latest/11_tools_integration/02_ipython.html#why-can-t-i-run-kedro-jupyter-notebook
  • d

    datajoely

    07/27/2021, 10:58 AM
    There is some discussion here https://github.com/quantumblacklabs/kedro/issues/116
Powered by Linen
Title
d

datajoely

07/27/2021, 10:58 AM
There is some discussion here https://github.com/quantumblacklabs/kedro/issues/116
View count: 2