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

SNOW-1740835: Building Container Runtime notebooks not just warehouse runtime notebooks #1734

Open
sfc-gh-jdemlow opened this issue Oct 16, 2024 · 0 comments

Comments

@sfc-gh-jdemlow
Copy link

Description

Do we support creating container runtime notebooks with snowcli

Create or replace the notebook

snow notebook create "$identifier" --notebook-file "$file_path" --connection "$CONNECTION"

Context

This feature just brings us to parity and will be very useful when have a CI/CD approach to pushing notebooks from a repo.

IE:

# Create or replace notebooks from sf_nbs folder
for notebook in $SF_NBS/*.ipynb; do
    filename=$(basename "$notebook")
    identifier="${DATABASE}.${SCHEMA}.${filename%.*}"
    file_path="@${DATABASE}.${SCHEMA}.${REPOSITORY}/branches/${BRANCH}/${SF_NBS}/$filename"
    echo "Creating or replacing notebook: $file_path"
    
    # Create or replace the notebook
    snow notebook create "$identifier" --notebook-file "$file_path" --connection "$CONNECTION"

This is a helpful script to get my repo notebooks launched as I am developing container runtime is something that would be nice to be able to have as this will be more of the workloads I move to as this closes in on PuPr.

@github-actions github-actions bot changed the title Building Container Runtime notebooks not just warehouse runtime notebooks SNOW-1740835: Building Container Runtime notebooks not just warehouse runtime notebooks Oct 16, 2024
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

No branches or pull requests

1 participant