-
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
Extend notebook source replacement code to other objects apart from ZenML steps #2919
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 Documentation and Community
|
65d4d8d
to
6cc2495
Compare
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.
I added some minor comments.
One small feedback regarding the workflow over notebooks in general: As I was going through the PR, at some point, I went to our docs because I thought it would be a nice idea to add some links to some of the error messages to make the issue clearer. However, I think the docs are lacking some examples and some tutorials on what is possible and what is impossible.
from zenml.utils import code_utils | ||
|
||
artifact_store = Client().active_stack.artifact_store | ||
|
||
if ( |
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.
If the notebook cell content is stored in a different artifact store than the active one we are failing here. Similar to what we did with the pipeline artifacts, could we not try to initialize this other artifact store and use it to load it?
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.
+1, seems like the old bug we had
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.
I would use active only in case source.artifact_store_id
is None, otherwise will work with that one. Is this what you meant @bcdurak or something else?
except FileNotFoundError: | ||
if not source.artifact_store_id: | ||
raise FileNotFoundError( | ||
"Unable to find notebook code file. This might be because " |
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.
With the error message above, this one is now a bit misleading as it will fail if the file is stored in a different artifact store.
Describe changes
Extend notebook source replacement code to other objects apart from ZenML steps.
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