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 Visual Studio Code: Windows command for finding Kedro CLI script #4384

Open
opherdonchin opened this issue Dec 13, 2024 · 0 comments
Open
Labels
Community Issue/PR opened by the open-source community

Comments

@opherdonchin
Copy link

Description

The description of the windows command for finding the CLI script has a bug and also does not return a useful pointer. An alternative is better.

The current command: python -c 'import sys, os.path; print(os.path.join(os.path.dirname(sys.executable), "kedro"))'

Should be (switched double and single quotes): python -c "import sys, os.path; print(os.path.join(os.path.dirname(sys.executable), 'kedro'))"

And then returns: C:\Users\User\.conda\envs\slow_learning\kedro. This is not the correct directory or the correct filename.

Instead, the command should be: where kedro

Which returns: C:\Users\User\.conda\envs\slow_learning\Scripts\kedro.exe This is correct, except that the single backslashes need to be replaced with double backslashes to get it to work.

Documentation page (if applicable)

https://docs.kedro.org/en/stable/development/set_up_vscode.html.

Context

OS Name Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631

@merelcht merelcht added the Community Issue/PR opened by the open-source community label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Issue/PR opened by the open-source community
Projects
None yet
Development

No branches or pull requests

2 participants