KedroSessions

In order to get the best help, it is suggested to answer the following questions:

What is the goal you are trying to achieve?
Trying to do Lifecycle management with KedroSessions

What have you tried, in order to accomplish the goal?
Run KedroSession in kedro ipython

What version of Kedro are you using? (Use kedro -V)
0.17

Do you have any custom plugins?
No

What is the full stack trace of the error (if applicable)
RuntimeError: Cannot activate the session as another active session already exists.

Welcome to the community @sourabh_agarwal!

The kedro ipython command creates a kedro session by running your 00-kedro-init.py file on startup. The session should already be available as session.

Please let me know if this helps

@waylonwalker Thank You for the help.

1 Like

@waylonwalker could you please share me some documentation of Hooks implementation other then Kedro official documentation .
Thanks

1 Like

Here is a post I did awhile back. I should definitely do more on kedro hooks as the ones I have were created before the docs were even out. In there you will find a class based hook that covers all the hook points that were available at the time.

Here is a video from the great @DataEngineerOne

You can find some implementations of examples on github browsing the kedro-plugin and kedro-hook topics