-
Notifications
You must be signed in to change notification settings - Fork 443
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
Fix to file path for notebook quickstart #2288
Fix to file path for notebook quickstart #2288
Conversation
WalkthroughWalkthroughThe update to the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
44e6215
to
d24d486
Compare
@coderabbitai review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- src/zenml/cli/base.py (1 hunks)
Additional comments: 1
src/zenml/cli/base.py (1)
- 473-473: The change to call Jupyter notebook directly with
zenml_tutorial_path
seems correct. However, we should verify thatzenml_tutorial_path
is properly defined and that the removal ofnotebook_path
does not impact other parts of the code.Verification successful
The corrected
rg
command did not produce any output, which indicates that the stringnotebook_path
does not appear elsewhere in the.py
files of the codebase. This suggests that the removal ofnotebook_path
from thego
function insrc/zenml/cli/base.py
likely does not impact other parts of the code.Given this information, the change to use
zenml_tutorial_path
directly in thesubprocess.check_call
within thego
function is verified and does not seem to affect other areas of the codebase.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that zenml_tutorial_path is defined and used correctly ast-grep --lang python --pattern $'zenml_tutorial_path = $_' # Ensure notebook_path is not used elsewhere in the codebase rg --type python 'notebook_path'Length of output: 227
Script:
#!/bin/bash # Correcting the file type and searching for 'notebook_path' in .py files rg --type py 'notebook_path'Length of output: 28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for opening this PR, looks good one minor comment
zenml_tutorial_path
should probably be defined outside of the with
statement
Describe changes
When running
zenml go
for the guided quickstart as instructed in Readme, I get following:FileNotFoundError: [Errno 2] No such file or directory: '~/.../zenml_tutorial/notebooks'
notebooks
path does not get created in files download so I have removed from Jupyter notebook call.Link to issue: #2289
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes
Summary by CodeRabbit