How to insert images in DataBricks notebook


Following steps show how to upload images to databricks filestore, and insert that path in the notebook cell.

upload the image to databricks

As shown in the following, in the homepage of your databricks account, click the import and explore data part.

step1

after the this, in the upload file menu, further click the drop file place to choose image file from your local computer.

step2

with this being successful, you will see the path of the image you just uploaded, here our file name is called dbx_test.png,
as shown in the following:

step3

insert the image path using markdown in notebook

Notice that, the path begins with /FileStore/, but we need replace with file/, as shown in the following:

%md
![test image](files/tables/dbx_test.png)

in the above code, “test image” is just some description you can name whatever you want to.

As the result, after your run the cell, you will see the image shown up like this:

step4


Author: robot learner
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source robot learner !
  TOC