SVG images are not displayed in Jupyter / IPython Notebooks
Summary
GitLab has support for rendering Jupyter / IPython Notebooks. However, when images are embedded as SVG instead of PNG, they are not being displayed.
Steps to reproduce
Create a Jupyter Notebook with this content (or use the attached file gitlab-show-svg.ipynb or have a look at this project):
# use SVG as backend
%config InlineBackend.figure_format = 'svg'
# plot a random series
import numpy as np
import pandas as pd
pd.Series(np.random.randn(50)).plot(figsize=(9,6));
What is the current bug behavior?
The image is not displayed. In the HTML code, an svg element exists, but it is empty.
What is the expected correct behavior?
The image should be displayed (the svg should be embedded in HTML)
Affected Version
GitLab Community Edition 10.8.0
update 2018-11-21: GitLab Enterprise Edition 11.5.0-rc13-ee
Edited by Sebastian Straub