Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup and Test Kedro-Viz in VSCode #120

Open
jitu5 opened this issue Sep 20, 2024 · 1 comment
Open

Setup and Test Kedro-Viz in VSCode #120

jitu5 opened this issue Sep 20, 2024 · 1 comment
Labels
DevOps Making sure the extension work, testing

Comments

@jitu5
Copy link
Contributor

jitu5 commented Sep 20, 2024

Requirements:

  • VS Code 1.64.0 or greater
  • Python extension for VS Code
  • Kedro Project >= 0.19

Pre-requisite:

  • The extension requires bootstrap_project in Kedro. You need to ensure that you can run kedro run without encountering any immediate errors; otherwise, you may experience a server panic error.
  • Select the correct Python interpreter that you use to run the Kedro project by pressing Shift + Cmd + P, typing “Python: Select Interpreter,” and hitting Enter.

Setup:

  • You can install pre-release version of extension from marketplace directly
  • 369378934-39c8594e-6265-4538-9ffa-5eea711d629011111
  • Restart the extension or VSCode window by pressing Shift + Cmd + P, typing ‘Developer: Reload Window,’ and hitting Enter.
  • If you are using the Kedro extension for the first time, note that it will only activate when you open a .yml or .py file in the editor.

Check:

  • To check if the Kedro extension is running properly, navigate to Output and select Kedro from the drop-down menu.
  • It may provide hints and report errors. If errors appear, press Cmd + Shift + P to open the VSCode command palette and search for Kedro: Restart Server.
  • If there are no errors, open a pipeline.py file from your Kedro project and hover over any input or output values to see their details.
  • Screenshot 2024-09-20 at 10 01 16 a m

Visualize:

  • To visualize the Kedro pipeline, press Shift + Cmd + P, type ‘Kedro: Run Kedro Viz,’ and hit Enter.

Test Case 1:

  • If you do not have Kedro-Viz 10.0.0 installed in your virtual environment, you will be prompted to install it.
  • Screenshot 2024-09-20 at 11 13 31 a m
  • If you click on “Install,” you will see a loader notification while the installation is in progress.
  • Screenshot 2024-09-20 at 11 13 47 a m
  • Once installation is complete, the Kedro-Viz flowchart will appear.
  • If you click “Cancel,” a notification will appear, and the operation will be canceled.
  • Screenshot 2024-09-20 at 11 17 44 a m

Test Case 2:

  • Once the flowchart loads successfully, click on any data node to navigate to the corresponding .yml file.

Test Case 3:

  • Once the flowchart loads successfully, click on any function node to navigate to the corresponding .py file.

Test Case 4:

  • Make some changes to your Kedro project that can be visualised in the flowchart (after changes, ensure that you can run kedro run without any immediate errors).
  • To reflect your changes in the flowchart, press Cmd + Shift + P, search for Kedro: Restart Server, and hit Enter.

Test Case 5:

  • Please repeat above steps for other Kedro project.
@jitu5 jitu5 self-assigned this Sep 20, 2024
@noklam noklam added the DevOps Making sure the extension work, testing label Sep 23, 2024
@rashidakanchwala
Copy link

I tried the above. All scenarios work for me. Thanks!

@noklam noklam moved this to Todo in Kedro VS Code Sep 25, 2024
@jitu5 jitu5 removed their assignment Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevOps Making sure the extension work, testing
Projects
Status: Todo
Development

No branches or pull requests

3 participants