question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inserting subfigures with Myst-Markdown that render in book

See original GitHub issue

hey @broncio123 - could you open up a new issue if you’ve got a question? I believe this issue is targeted for displaying figures in both myst-markdown and jupyter interfaces

_Originally posted by @choldgraf in https://github.com/executablebooks/jupyter-book/issues/629#issuecomment-659454521_

The syntax in the documentation - shown below- works for singles figures, but it’s not obvious how to tweak this to insert subfigures so that they appear under the same figure number, referenced with the same label, and they can have separate captions in addition to the main one. Is this even possible?

```{figure} path_to_my_figure
---
name: my-label
---
My caption

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
paugiercommented, Sep 22, 2022

Oh great! It works like a charm. I should try to make a PR to include a mention of sphinx-subfigure in https://jupyterbook.org/en/stable/content/figures.html.

0reactions
chrisjsewellcommented, Sep 22, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Images and figures - Jupyter Book
MyST Markdown provides a few different syntaxes for including images in ... This will correctly copy the image to the build folder and...
Read more >
Overview
Use MyST Markdown syntax to support technical authoring features such as ... Render. Convert Jupyter execution outputs to rich embedded content. Insert ......
Read more >
Images and figures - MyST Markdown
Using standard markdow to create an image will render across all output formats (HTML, TeX, Word, PDF, etc). However, this markdown syntax is...
Read more >
tools.md.txt - The Executable Books Project
For `.ipynb` and markdown notebooks, execute code and insert the latest outputs into your book. In addition, cache and re-use outputs to be...
Read more >
Using figures in The Turing Way
We encourage you to add images to The Turing Way book chapters. This section of the style guide will explain how to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found