Hi All, We are porting an old pipeline (version 0....
# questions
e
Hi All, We are porting an old pipeline (version 0.17.7) to 0.18.14 and we run into
kedro.framework.get_current_session()
missing in recent version. We don’t recall DeprecationWarnings (similar to decorators for example) our question is - how to get hold of the current session in recent versions? Thank you!
e
Hello Emil, in newer
Kedro
versions you can work with a session like so: https://docs.kedro.org/en/0.18.4/kedro_project_setup/session.html
e
Thanks Elena, that part remained the same as in 0.17; only the
get_current_session()
part is gone. We need keep a global somewhere I suppose.
e
Np! Depending on what your purpose is you can also use hooks to access `catalog`/`context`, etc at a particular step of your pipeline instead. Or if you’re using Jupyter Notebook you can access
session
like so: https://docs.kedro.org/en/stable/notebooks_and_ipython/kedro_and_notebooks.html#what-does-kedro-jupyter-notebook-do
thankyou 1