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

Update _data_pipelines.py #319

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update _data_pipelines.py #319

wants to merge 3 commits into from

Conversation

hurtn
Copy link
Contributor

@hurtn hurtn commented Nov 29, 2024

Added update data pipeline definition method

Added update data pipeline definition method


def update_data_pipeline_definition(
name: str, pipeline_content: str, workspace: Optional[str] = None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't the content be in dict format? Check out the _conv_b64 function in sempy_labs._helper_functions.

let's use the parameter' content' instead of 'pipeline_content'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can change it to dict, was using your update notebook definition as a template

def update_notebook_definition(

LMK

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah but the content/definition for a notebook isn't in json format. it's in .py format.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gotcha, make sense. i'll update tomorrow!

hurtn added 2 commits December 9, 2024 22:21
Update pipeline_content to dict
Added new function to data_pipelines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants