panel icon indicating copy to clipboard operation
panel copied to clipboard

Update Image.ipynb 02 with added explanation that it selects another, sp…

Open Coderambling opened this issue 1 year ago • 2 comments

…ecific image pane to display an image

New commit, with added text explaining that image is a "macro" pane that selects a more specific image pane to display an image. Includes links to the API and source code of the pane.

Coderambling avatar Jun 09 '24 15:06 Coderambling

json.decoder.JSONDecodeError: Expecting value: line 51 column 4 (char 2407) That line has the closing character "]" .

Sorry that didn't work. I updated the text using a Notebook, but I obviously did something wrong, or perhaps the spacing is different?

I have attached the edited .ipynb file (which works when opened in a Notebook), as a .zip.

Image_new_text.ipynb.zip Image_new_text.ipynb.zip

Updated Markdown text:

The Image pane embeds any known image format file in panel if provided a local path, or will link to a remote image if provided with a URL.

The Image pane functions as a sort of "macro" pane that selects one of the more specific image panes to display the image (whichever one first recognizes this particular image format).

Please refer to the API and source code.

The classmethod get_pane_type returns the pane_type that was selected.

Please consult the documentation of each specific pane (JPG, PNG, SVG, etc.) for the options that particular pane will support.

Coderambling avatar Jun 09 '24 15:06 Coderambling

Yeah you have to be quite careful editing notebooks directly.

philippjfr avatar Jun 24 '24 18:06 philippjfr

I think this was superseded by https://github.com/holoviz/panel/pull/7004/. Thanks for following up!

philippjfr avatar Aug 01 '24 09:08 philippjfr

Yes it was, got there in the end!

Coderambling avatar Aug 01 '24 18:08 Coderambling

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Sep 09 '25 23:09 github-actions[bot]