after_catalog_created fires on tab complete
See original GitHub issueDescription
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
- apply an after_catalog_created hook to a pipeline
- open ipython and create a context object (
kedro ipython) - 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 kedroorkedro -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:
- Created 2 years ago
- Comments:9 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The decision to recreate the catalog every time users access
context.catalogpredates me. I guess it’s to cater to this notebook workflow, i.e. users can play with dataset in a notebook and updatecatalog.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.
Is this possible related: https://github.com/ipython/ipython/issues/9094?