Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex DataSphere
  • Getting started
    • All guides
      • Connecting to JupyterLab from a local IDE
      • Selecting computing resources
      • Checking GPU load
      • Getting a notebook ID
      • Installing packages
      • Notebook code snippets
      • Clearing notebook cell outputs
      • Working with Git
      • Setting up template-based notebook creation
    • Migrating a workflow to a new version
  • Terraform reference
  • Audit Trails events
  • Access management
  • Pricing policy
  • Public materials
  • Release notes

In this article:

  • Getting started
  • Running a snippet
  1. Step-by-step guides
  2. DataSphere Notebook
  3. Notebook code snippets

Notebook code snippets

Written by
Yandex Cloud
Updated at December 19, 2023
  • Getting started
  • Running a snippet

The notebook contains code snippets for simple operations. Use them to extract files from a ZIP archive, to create a dataset, or to connect to file storage. The snippet library is subject to updates, so an up-to-date snippet list is available in the IDE.

Getting startedGetting started

Open the DataSphere project:

  1. Select the relevant project in your community or on the DataSphere homepage in the Recent projects tab.

  2. Click Open project in JupyterLab and wait for the loading to complete.
  3. Open the notebook tab.

Running a snippetRunning a snippet

  1. In Snippets, select the snippet that you want to run. The code will be added to a new notebook cell.
  2. Edit the appropriate parameters, such as file paths, names, logins, and passwords. To store private information, use secrets.
  3. If a snippet contains additional instructions, run them as well.
  4. Run the cell. To do this, click .
  5. The result will be displayed under the cell.

See alsoSee also

  • Connecting to Yandex Disk
  • Connecting to Google Drive
  • Working with Git

Was the article helpful?

Previous
Installing packages
Next
Clearing notebook cell outputs
© 2025 Direct Cursus Technology L.L.C.