Skip to content

Bug in Image when using local file withembed=False  #13971

Closed

Description

@kolibril13

The following code should show an Image when using the Image object when the embed parameter is set to false.
However, it does not do that.

from IPython.display import Image
Image("assets/cute_dog.jpg", embed=False, width=300)

I could fix the problem by replacing
src=\"None\" with src=\"assets/cute_dog.jpg\"

in my local notebook file:

image

image

I think that this line needs to be modified:

self.embed = embed if embed is not None else (url is None)

Activity

  1. added a commit that references this issue on Oct 21, 2026
    efc25f5
  2. added a commit that references this issue on Oct 21, 2026
    976dadb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions