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.

after_catalog_created fires on tab complete

See original GitHub issue

Description

Is this expected behavior? It’s not something that I expected or was intuitive to me.

Context

Looking for discussion around this, does it make sense to fix, document, or is it working as expected?

Steps to Reproduce

  1. apply an after_catalog_created hook to a pipeline
  2. open ipython and create a context object (kedro ipython)
  3. context.cata<TAB>

Expected Result

after_catalog_created hook should fire after the catalog is created, not during tab complete

Your Environment

Include as many relevant details about the environment in which you experienced the bug:

  • Kedro version used (pip show kedro or kedro -V): 0.17.1 and 0.17.3
  • Python version used (python -V): 3.8.10
  • ipython version used: 7.21.0
  • Operating system and version: Ubuntu

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
limdautocommented, Jun 13, 2021

The decision to recreate the catalog every time users access context.catalog predates me. I guess it’s to cater to this notebook workflow, i.e. users can play with dataset in a notebook and update catalog.yaml. Then when users go back to the notebook, we expect that catalog to be updated.

As @WaylonWalker mentioned, I think it’s wrong to have catalog changing within the same session. We meant to create an interactive session for notebook to do autoreload of library components better but never got round to.

1reaction
mzjp2commented, Jun 2, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

is autocomplete working?? · Issue #347 · google/python-fire
Hi,. I am learning Fire and am interested in how completion works. ... Now when I run python main.py and press <TAB> it...
Read more >
dnf tab completion hangs - Unix & Linux Stack Exchange
Tab completion is hanging when attempting to complete package names. eg dnf info fire[TAB] . How can I fix this?
Read more >
Tab completion ignoring some files in Bash/Debian
I am using tab completion in a standard Debian install with Bash and I have some files being ignored. For example, if I...
Read more >
Bash filename tab completion - linux - Super User
I have noticed sometimes that tab completion is helpfully filtered in bash. I am a java programmer and often use the java and...
Read more >
browser.tabs.onUpdated status == "complete" fires before tab ...
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 Steps to reproduce: 1.
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