microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.86k stars 29.51k forks source link

Matplotlib custom styles throw error #106340

Closed chriskue closed 4 years ago

chriskue commented 4 years ago

Issue Type: Bug

In Matplotlib it is possible to create custom plot styles. However, style files that work fine in jupyterlab (2.2.6) throw the following error ValueError: Failed to parse /usr/local/texlive/2016/texmf-dist/fonts/enc/dvips/base/8r.enc as Postscript encoding when used in the ipython live notebooks. MWE:


plt.style.use('file.mplstyle')
plt.plot([1,2,3],[2,3,4],'x')```

in `file.mplstyle`:
`axes.labelsize : 14`

VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:09:08.021Z)
OS version: Darwin x64 18.7.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2600)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 2, 2|
|Memory (System)|16.00GB (0.27GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (17)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-django|bat|0.20.0
python-extension-pack|don|1.6.0
matlab|Gim|2.0.0
gitlab-workflow|Git|3.2.1
nbpreviewer|jit|1.2.2
language-julia|jul|1.0.6
vsc-python-indent|Kev|1.11.0
kite|kit|0.122.0
MagicPython|mag|1.1.0
gather|ms-|2020.7.2
python|ms-|2020.8.106424
cpptools|ms-|0.29.0
neuron-IPE|neu|1.0.4
VSNotebooksBeta|pav|1.4.4
pdf|tom|1.1.0
vscodeintellicode|Vis|1.2.10
jinja|who|0.0.8

</details>
<!-- generated by issue reporter -->
kieferrm commented 4 years ago

\extPython