scilab_kernel icon indicating copy to clipboard operation
scilab_kernel copied to clipboard

PDF export via LaTeX is broken

Open haniibrahim opened this issue 2 years ago • 1 comments

First, thank you for sharing your kernel. I use it with the classic Jupyter notebook. When I export a notebook as PDF (via LaTeX) it fails. I tested it on GNU/Linux and macOS. The PDF export works with Python3 or gnuplot kernel on both platforms.

This happens even with simple notebooks. Just with one disp command. I tested it with a couple notebooks.

When I export a notebook as LaTeX only there is a weird character which is also in the error message : ^^H Refer LaTeX-file at https://hani-ibrahim.de/public/misc/nb.tex, line 390

Error message on GNU/Linux: 500 Internal kernel error

...

! Text line contains an invalid character.
l.390  ^^H
          
? 
! Emergency stop.
l.390  ^^H

....

Complete Linux-log at https://hani-ibrahim.de/public/misc/pdf-latex-errorlog.txt

GNU/Linux: Python 3.6 macOS: Python 3.8


Scilab kernel v0.9.10 Metakernel v0.28.2 Python v3.6.9 (default, Mar 15 2022, 13:55:28) [GCC 8.4.0] Python path: /usr/bin/python3

Connecting to Scilab... Scilab connection established Scilab version "6.1.0.1582621796" scilab-6.1.0

haniibrahim avatar Jun 21 '22 07:06 haniibrahim

Hi @haniibrahim, I believe this is related to https://github.com/pexpect/pexpect/issues/669#issuecomment-758109973. We haven't had a work around it in metakernel yet.

blink1073 avatar Jun 21 '22 13:06 blink1073