The extension is in beta, so you may experience breaking changes and bugs. If you encounter issue, report it in Github or Slack, we will try to fix ASAP.
Kedro
from the extension> Python: select interpreter
commandp.s. If you can kedro run
with the environment, you are good to go.
The extension requires bootstrap_project
in Kedro, you need to make sure you can do kedro run
without getting any immediate error, otherwise you may get a server panic error.
By default, the extension references the configuration loader's base_env (typically base
). To change the directory where the extension looks for configurations, the extension provides 3 different ways to do this:
Cmd
+ Shift
+ P
) and choose kedro: Select Environment
Click Output
and select Kedro
from the dropdown list. It may gives you some hints and report back if you think this is a bug.
Hit Cmd
+ Shift
+ P
to open the VSCode command, look for kedro: restart server
in case it's panic.
Currently, the extension assume the source of configuration is in the base_env
defined by the config loader (if you didn't speficy, usually it is conf/base
).
This mean that if the configuration is overrided by the default_run_env
(usually it is local
), the extension may fails to resolve to the correct location.
The extension follows Kedro pipeline autodiscovery mechanism. It means that in general it is looking for modular pipelines structure, i.e. <src/package/pipelines/<pipeline>
. It can be visualised as follows:
.
├── conf
│ ├── base
│ └── local
├── notebooks
├── src
│ └── demo
│ ├── pipelines
│ ├── first_pipeline
│ └── second_pipeline
# Feature
## Go to Definition from pipeline.py to configuration files
Use `Cmd` (Mac)/ `Ctrl` (Window) + `Click` or `F12` to trigger `Go to Definition`
![go to definition](assets/lsp-go-to-definition.gif)
## Go to Reference from configuration files to pipeline.py
- `Cmd` or `Ctrl` (Window) + `Click` on the definition.
- Use `Find Reference`
- Use the shortcut `Shift` + `F12`
![find reference](assets/lsp-find-reference.gif)
**Note:** You can find pipeline reference in all the files containing "pipeline" in their names, even in nested subdirectories.
Type "
in any pipeline.py
and it should trigger the autocompletion list.
Just hover your mouse over any params:
, datasets or hit the command Show or Focus Hover