# Config example for jupyter is needed

**URL:** <https://forum.gitea.com/t/config-example-for-jupyter-is-needed/3252>\
**Category:** Install/Maintain/Configure\
**Created:** [May 7, 2021, 4:06pm UTC](https://forum.gitea.com/t/config-example-for-jupyter-is-needed/3252 "2021-05-07T16:06:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene-1984](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eugene-1984/32/1300_2.png) [@Eugene-1984](https://forum.gitea.com/u/Eugene-1984)\
**Post date:** [May 7, 2021, 4:06pm UTC](https://forum.gitea.com/t/config-example-for-jupyter-is-needed/3252/1 "2021-05-07T16:06:19Z")

</div>

Does anyone uses gitea with jupyter renderer? My gitea does not show plots as described in [External markup renderer doesn't show any embedded images · Issue #3025 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/issues/3025) This issue is closed and the last message asks for the config example to allow plot and math to pass sanitized rules. I have no idea how to turn `sanitizer.policy.AllowImages()` and all into a proper `[markup.sanitizer` config for jupyter. This page lacks info for jupyter [External renderers - Docs](https://docs.gitea.io/en-us/external-renderers/#appini-file-configuration) and this does not cover sanitizers at all in customizing-gitea section.

Some just **must** already have the solution for the jupyter - it is a popular thing - please be kind and share you config.

---

<div class="post-metadata">

**Author:** ![Eugene-1984](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eugene-1984/32/1300_2.png) [@Eugene-1984](https://forum.gitea.com/u/Eugene-1984)\
**Post date:** [June 6, 2021, 9:57am UTC](https://forum.gitea.com/t/config-example-for-jupyter-is-needed/3252/2 "2021-06-06T09:57:58Z")

</div>

This addition is supposed to work:

```auto
[markup.sanitizer.ipynb]
ELEMENT = img
ALLOW_ATTR = src

```

for the jupyter renders images like `<img src="data:image/png;base64,iVBORw0KGgoA`.

But still output is sanitized to `<img/>`. Any suggestions?

---

<div class="post-metadata">

**Author:** ![Eugene-1984](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eugene-1984/32/1300_2.png) [@Eugene-1984](https://forum.gitea.com/u/Eugene-1984)\
**Post date:** [June 6, 2021, 11:21am UTC](https://forum.gitea.com/t/config-example-for-jupyter-is-needed/3252/3 "2021-06-06T11:21:45Z")

</div>

Discord user pointed out to [Sanitizer exception for IMG SRC attribute not being applied · Issue #16020 · go-gitea/gitea · GitHub](https://github.com/go-gitea/gitea/issues/16020)
