$ jupyter notebook [I 13:44:42.025 NotebookApp] Serving notebooks from local directory: /home/dettorer/[SNIP] [I 13:44:42.025 NotebookApp] Jupyter Notebook 6.1.4 is running at: [I 13:44:42.026 NotebookApp] http://localhost:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 [I 13:44:42.026 NotebookApp] or http://127.0.0.1:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 [I 13:44:42.026 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 13:44:42.080 NotebookApp] To access the notebook, open this file in a browser: file:///home/dettorer/.local/share/jupyter/runtime/nbserver-1774208-open.html Or copy and paste one of these URLs: http://localhost:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 or http://127.0.0.1:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 [I 13:46:19.688 NotebookApp] Creating new notebook in [I 13:46:20.446 NotebookApp] Kernel started: 7abf6206-965e-4136-8406-dde7ba953326, name: python3 [I 13:48:20.448 NotebookApp] Saving file at /svg_to_pdf_error.ipynb [I 13:48:34.502 NotebookApp] Saving file at /svg_to_pdf_error.ipynb Warning: Option --without-gui= is deprecated Warning: Option --export-pdf= is deprecated ** (org.inkscape.Inkscape:1776272): WARNING **: 13:48:34.812: Fonts dir '/home/dettorer/.config/inkscape/fonts' does not exist and will be ignored. [E 13:48:34.843 NotebookApp] nbconvert failed: module 'base64' has no attribute 'encodestring' Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/notebook/nbconvert/handlers.py", line 130, in get output, resources = exporter.from_notebook_node( File "/usr/lib/python3.9/site-packages/nbconvert/exporters/pdf.py", line 170, in from_notebook_node latex, resources = super(PDFExporter, self).from_notebook_node( File "/usr/lib/python3.9/site-packages/nbconvert/exporters/latex.py", line 88, in from_notebook_node return super(LatexExporter, self).from_notebook_node(nb, resources, **kw) File "/usr/lib/python3.9/site-packages/nbconvert/exporters/templateexporter.py", line 307, in from_notebook_node nb_copy, resources = super(TemplateExporter, self).from_notebook_node(nb, resources, **kw) File "/usr/lib/python3.9/site-packages/nbconvert/exporters/exporter.py", line 139, in from_notebook_node nb_copy, resources = self._preprocess(nb_copy, resources) File "/usr/lib/python3.9/site-packages/nbconvert/exporters/exporter.py", line 316, in _preprocess nbc, resc = preprocessor(nbc, resc) File "/usr/lib/python3.9/site-packages/nbconvert/preprocessors/base.py", line 47, in __call__ return self.preprocess(nb, resources) File "/usr/lib/python3.9/site-packages/nbconvert/preprocessors/base.py", line 69, in preprocess nb.cells[index], resources = self.preprocess_cell(cell, resources, index) File "/usr/lib/python3.9/site-packages/nbconvert/preprocessors/convertfigures.py", line 45, in preprocess_cell output.data[self.to_format] = self.convert_figure( File "/usr/lib/python3.9/site-packages/nbconvert/preprocessors/svg2pdf.py", line 108, in convert_figure return base64.encodestring(f.read()) AttributeError: module 'base64' has no attribute 'encodestring' [W 13:48:34.845 NotebookApp] 500 GET /nbconvert/pdf/svg_to_pdf_error.ipynb?download=true (127.0.0.1): nbconvert failed: module 'base64' has no attribute 'encodestring' [E 13:48:34.852 NotebookApp] { "Host": "localhost:8888", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0", "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Language": "en-GB,fr-FR;q=0.8,en-US;q=0.6,en;q=0.4,fr;q=0.2", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Referer": "http://localhost:8888/notebooks/svg_to_pdf_error.ipynb", "Cookie": "username-localhost-8888=\"2|1:0|10:1607604283|23:username-localhost-8888|44:YmJiYzNjMmIzMDdmNDVlZTlhZDQ4YzY2NzIyNzYwNzA=|268321ccfed2a267793bc85416d63592c1a76ea14d0b4a6e0ab3d30c58cb9d50\"; _xsrf=2|ccca4c89|4cd87d13ddc6bfe29830a00efc12d337|1606126492", "Upgrade-Insecure-Requests": "1" } [E 13:48:34.853 NotebookApp] 500 GET /nbconvert/pdf/svg_to_pdf_error.ipynb?download=true (127.0.0.1) 314.25ms referer=http://localhost:8888/notebooks/svg_to_pdf_error.ipynb [I 13:49:23.902 NotebookApp] Starting buffering for 7abf6206-965e-4136-8406-dde7ba953326:4c51e649df8a42efa13224d2fd996383 ^C[I 13:49:29.869 NotebookApp] interrupted Serving notebooks from local directory: /home/dettorer/[SNIP] 1 active kernel Jupyter Notebook 6.1.4 is running at: http://localhost:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 or http://127.0.0.1:8888/?token=99a8ef74226c2afc0ef1611755a22e26f5746e7ca41f91e5 Shutdown this notebook server (y/[n])? y [C 13:49:31.028 NotebookApp] Shutdown confirmed [I 13:49:31.029 NotebookApp] Shutting down 1 kernel [I 13:49:31.330 NotebookApp] Kernel shutdown: 7abf6206-965e-4136-8406-dde7ba953326 [I 13:49:31.330 NotebookApp] Shutting down 0 terminals