question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setup mlflow before KedroContext

See original GitHub issue

Hello,

I have a custom KedroContext (where I initialise a Spark session) and I would like to log things into mlflow at this moment. But if I log things there, it doesn’t take into consideration my mlflow.yml parameters.

I tried to call in my KedroContext:

        mlflow_config = get_mlflow_config()
        mlflow_config.setup()

But I got the following error: RuntimeError: There is no active Kedro session

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stephanecollotcommented, Mar 28, 2022

Hi,

Thank you a lot, it works like a charm!

Cheers

0reactions
Galileo-Galileicommented, Mar 28, 2022

Hi @stephanecollot did you manage to make it work? As stated above, this is not really a bug and I can’t do anything so I’ll close this issue, but I can help you to achieve what you want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release 0.11.4 Yolan Honoré-Rougé
Kedro is a python package which facilitates the prototyping of data pipelines. It aims at enforcing software engineering.
Read more >
Setup mlflow configuration when context is loaded #124
When I call load_context() interactively, the configuration of the mlflow.yml is: not accessible through a context attributes; not set up ( ...
Read more >
Unanswered 'kedro' Questions
I want to use an Azure Machine Learning compute cluster as a compute target to run a Kedro pipeline integrated with Mlflow. Here's...
Read more >
kedro-mlflow Release Yolan Honoré-Rougé Aug 06, 2020
A brief comparison between Kedro and Mlflow Configuration and ... is setup, there is songle paramter to set before logging which is the ......
Read more >
Announcements: 778216384475693066
pip install kedro==0.17.7 conda install -c conda-forge kedro==0.17.7 ... Until next time, The Kedro Team Footnotes:- #1: ... KedroContext instance as
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found