Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure images show up in both JupyterLab and rendered on website #75

Closed
scottyhq opened this issue Jul 1, 2021 · 0 comments · Fixed by #76
Closed

Ensure images show up in both JupyterLab and rendered on website #75

scottyhq opened this issue Jul 1, 2021 · 0 comments · Fixed by #76

Comments

@scottyhq
Copy link
Member

scottyhq commented Jul 1, 2021

Figure directives are great for generating labels and having things look nice on the website:

```{figure} ../../img/sentinel1_radar_vision.jpg
---
height: 400px
name: sentinel1
---
Artist view of Sentinel-1. [Source](https://www.esa.int/ESA_Multimedia/Images/2014/01/Sentinel-1_radar_vision)

https://snowex-hackweek.github.io/website/tutorials/sar/sentinel1.html

But when actually running the notebook in a jupyterlab environment the figure is not rendered and just restates the directive:

---
height: 400px
name: sentinel1
---
Artist view of Sentinel-1. [Source](https://www.esa.int/ESA_Multimedia/Images/2014/01/Sentinel-1_radar_vision)

Seems the best solution is to use HTML tags as described here https://jupyterbook.org/content/figures.html#raw-html-images cc @mikedurand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant