DataLab Docs
  • What is DataLab?
  • Work
    • Creating a workbook
    • Sharing a workbook
    • Managing a workbook
    • Code cell
      • Working with packages
    • Text cell
      • Including images
    • SQL cell
      • SQL scenarios
      • Parameterize your SQL query
    • Explore Data cell
    • Chart cell
      • Configuring your chart
      • Pivot charts
      • Migration guide
    • AI Assistant
    • Version history
    • Scheduled runs
    • Hiding and showing cells
    • Long-running cells
    • Report view
    • Environment variables
    • Git and GitHub
  • Connect to Data
    • Connect your data to DataLab
    • Sharing a Data Source
    • Airtable
    • Amazon Athena
    • Amazon S3
    • Databricks
    • Dropbox
    • Files
    • Google Drive
    • Google BigQuery
    • Google Sheets
    • MariaDB
    • Microsoft SQL Server
    • MongoDB
    • MotherDuck
    • MySQL
    • Oracle Database
    • PostgreSQL
    • Redshift
    • Snowflake
    • Supabase
  • Guides
    • Publish a notebook
    • Importing data from flat files
    • Resizing plots
    • Show Bokeh and Pyvis plots
  • Resources
    • Pricing
    • Manage group settings
    • Reporting for Group Admins
    • DataLab for education
    • Technical requirements
    • Addressing slow code
    • Address R vulnerability
    • Get help
Powered by GitBook
On this page
  • Include an image on your computer
  • Include a screenshot from your clipboard
  • Include an image that in your workbook
  • Include image from a URL

Was this helpful?

  1. Work
  2. Text cell

Including images

PreviousText cellNextSQL cell

Last updated 11 months ago

Was this helpful?

You can include images by adding them to a text cell, using the appropriate Markdown syntax.

Include an image on your computer

There are several ways to do this:

  • Copy and paste

    • Copy the image on your computer

      • On Windows, you can use Ctrl + C for this.

      • On Mac, you can use Cmd + C .

    • Paste the image into a text cell in your notebook

      • On Mac, you can use Cmd + V .

      • On Windows, you can use Ctrl + V for this.

    • The image will be uploaded to your workbook filesystem, and the required markdown syntax to display the image will be added where your cursor is.

  • Drag and drop the image on your computer into the text cell that you want to contain the image. The image will be uploaded to your workbook filesystem, and the required markdown syntax to display the image will be added where your cursor is.

  • Manually upload the file and point to it in the text cell:

    • Open the file browser from the menu bar: "File > Show workbook files"

    • Upload the image you want to include. The filename cannot contain spaces. If it does, change the filename using the rename functionality.

    • In the text cell, add ![my image caption](my_image.png) (in this example, the filename of the image that is being included is my_image.png).

Include a screenshot from your clipboard

You can easily make screenshots and add them to your notebook:

  • Take the screenshot and copy it to your clipboard.

    • On Windows, you can use Windows + Shift + S for this.

    • On Mac, you can use Cmd + Ctrl + Shift + 4 for this.

  • Paste the screenshot into your text cell

    • On Windows, you can use Ctrl + V for this.

    • On Mac, you can use Cmd + V for this.

The screenshot will be uploaded to your workbook files, and the required markdown syntax to display the image will be added where your cursor is.

Include an image that in your workbook

If you already have an image file in your workbook, and want to display that in your notebook, add ![my image caption](my_image.png) to a text cell. In this example, the filename of the image that is being included is my_image.png. Note that the filename should not contain spaces for this to work!

Include image from a URL

![a random image](https://picsum.photos/200)

Using the <img> HTML element inside a text cell to include an image will work in the editor, but the image will not render correctly in a publication. This is a limitation we're planning to fix.

In a text cell, click the icon and select the file from your filesystem. The image will be uploaded to your workbook filesystem, and the required markdown syntax to display the image will be added where your cursor is.

In a text cell, add the following text (in this example, the image is available on ):

https://picsum.photos/200
Example of adding images