You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried several approaches (Export Notebook As... (PDF, html) to print a Jupyterlab or Jupyter notebook that has images embedded in Markdown cells, but with no success in having the images show up in the exported file. The exported files are generated without errors and otherwise look as one would expect but without the images. The Markdown cells mark up the images with tags like:
<img src="AnacondaWindowsStart.PNG" alt="Anaconda Navigator Start Menu icon" width="200px"/>
and the referenced images are located in the same folder as the notebook. The images show up fine when viewing the rendered cells in the notebook, but they don't appear in the file when exported with the methods mentioned above. The only way I have been able to get images to appear in a pdf of a notebook is to print the notebook from Print Preview using Jupyter notebook. Jupyterlab does not seem to have a way to Preview a print, and simply printing the notebook to a pdf printer in Jupyterlab is not successful: everything is printed except the images. When I try a simple print as a pdf in Jupyterlab, a pdf is generated, but where the images should be, only the alt text strings are printed. Is there a workaround or settings I am missing?
Reproduce
[Jupyterlab]
File... dropdown menu
Select Export Notebook to (html or pdf) or simply print to a pdf printer
Expected behavior
I expect to see what I see in the notebook when all the cells have been run (embedded images in Markdown cells showing up in the exported file)
Context
I'm running Windows 10
Firefox version 69.0
Jupyterlab 1.1.3
Jupyter notebook server 6.0.1
Python 3.7.3
IPython 7.8.0
MiKTeX 2.9
C:\Users\bjfur>jupyter lab --debug
[D 20:09:13.370 LabApp] Searching ['C:\\Users\\bjfur', 'C:\\Users\\bjfur\\.jupyter', 'C:\\Users\\bjfur\\Anaconda3\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 20:09:13.370 LabApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 20:09:13.370 LabApp] Looking for jupyter_config in C:\Users\bjfur\Anaconda3\etc\jupyter
[D 20:09:13.370 LabApp] Looking for jupyter_config in C:\Users\bjfur\.jupyter
[D 20:09:13.370 LabApp] Looking for jupyter_config in C:\Users\bjfur
[D 20:09:13.370 LabApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 20:09:13.370 LabApp] Looking for jupyter_notebook_config in C:\Users\bjfur\Anaconda3\etc\jupyter
[D 20:09:13.380 LabApp] Loaded config file: C:\Users\bjfur\Anaconda3\etc\jupyter\jupyter_notebook_config.json
[D 20:09:13.380 LabApp] Looking for jupyter_notebook_config in C:\Users\bjfur\.jupyter
[D 20:09:13.380 LabApp] Loaded config file: C:\Users\bjfur\.jupyter\jupyter_notebook_config.py
[D 20:09:13.380 LabApp] Looking for jupyter_notebook_config in C:\Users\bjfur
[D 20:09:13.380 LabApp] Paths used for configuration of jupyter_notebook_config:
C:\ProgramData\jupyter\jupyter_notebook_config.json
[D 20:09:13.380 LabApp] Paths used for configuration of jupyter_notebook_config:
C:\Users\bjfur\Anaconda3\etc\jupyter\jupyter_notebook_config.d\jupyterlab.json
C:\Users\bjfur\Anaconda3\etc\jupyter\jupyter_notebook_config.json
[D 20:09:13.380 LabApp] Paths used for configuration of jupyter_notebook_config:
C:\Users\bjfur\.jupyter\jupyter_notebook_config.json
[I 20:09:13.694 LabApp] The port 8888 is already in use, trying another port.
[I 20:09:13.694 LabApp] The port 8889 is already in use, trying another port.
[I 20:09:13.714 LabApp] JupyterLab extension loaded from C:\Users\bjfur\Anaconda3\lib\site-packages\jupyterlab
[I 20:09:13.714 LabApp] JupyterLab application directory is C:\Users\bjfur\Anaconda3\share\jupyter\lab
[I 20:09:13.724 LabApp] Serving notebooks from local directory: C:\Users\bjfur
[I 20:09:13.724 LabApp] The Jupyter Notebook is running at:
[I 20:09:13.724 LabApp] http://localhost:8890/?token=ee316fd60ddf64091817a118cd8ca9dbee66cf2247ba27d2
[I 20:09:13.744 LabApp] or http://127.0.0.1:8890/?token=ee316fd60ddf64091817a118cd8ca9dbee66cf2247ba27d2
[I 20:09:13.744 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 20:09:13.824 LabApp]
To access the notebook, open this file in a browser:
file:///C:/Users/bjfur/AppData/Roaming/jupyter/runtime/nbserver-3004-open.html
Or copy and paste one of these URLs:
http://localhost:8890/?token=ee316fd60ddf64091817a118cd8ca9dbee66cf2247ba27d2
or http://127.0.0.1:8890/?token=ee316fd60ddf64091817a118cd8ca9dbee66cf2247ba27d2
[D 20:09:15.125 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:15.125 LabApp] Using contents: services/contents
[D 20:09:15.135 LabApp] 200 GET /lab?token=ee316fd60ddf64091817a118cd8ca9dbee66cf2247ba27d2 (::1) 10.07ms
[D 20:09:15.195 LabApp] Path main.f723825c0024a62d4234.js served from C:\Users\bjfur\Anaconda3\share\jupyter\lab\static\main.f723825c0024a62d4234.js
[D 20:09:15.195 LabApp] 200 GET /static/lab/main.f723825c0024a62d4234.js (::1) 10.00ms
[D 20:09:15.195 LabApp] Path vendorsmain.a8c1de6e5fac1c35fc76.js served from C:\Users\bjfur\Anaconda3\share\jupyter\lab\static\vendorsmain.a8c1de6e5fac1c35fc76.js
[D 20:09:15.878 LabApp] 200 GET /static/lab/vendors~main.a8c1de6e5fac1c35fc76.js (::1) 692.61ms
[D 20:09:16.182 LabApp] Path base\images\favicon.ico served from C:\Users\bjfur\Anaconda3\lib\site-packages\notebook\static\base\images\favicon.ico
[D 20:09:16.183 LabApp] 200 GET /static/base/images/favicon.ico (::1) 2.04ms
[D 20:09:16.304 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.314 LabApp] 200 GET /api/sessions?1568516956312 (::1) 9.97ms
[D 20:09:16.314 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.336 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.336 LabApp] 200 GET /api/terminals?1568516956315 (::1) 22.10ms
[D 20:09:16.356 LabApp] Found kernel python3 in C:\Users\bjfur\Anaconda3\share\jupyter\kernels
[D 20:09:16.376 LabApp] 200 GET /api/kernelspecs?1568516956312 (::1) 49.34ms
[D 20:09:16.384 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.468 LabApp] 200 GET /lab/api/settings/?1568516956328 (::1) 85.36ms
[D 20:09:16.468 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.492 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.497 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.497 LabApp] Found kernel python3 in C:\Users\bjfur\Anaconda3\share\jupyter\kernels
[D 20:09:16.521 LabApp] 200 GET /api/kernelspecs?1568516956461 (::1) 52.77ms
[D 20:09:16.524 LabApp] 200 GET /api/sessions?1568516956459 (::1) 33.07ms
[D 20:09:16.547 LabApp] 200 GET /api/terminals?1568516956444 (::1) 49.76ms
[D 20:09:16.676 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.676 LabApp] 200 GET /metrics?1568516956678 (::1) 0.00ms
[D 20:09:16.872 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.892 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956873 (::1) 20.00ms
[D 20:09:16.902 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.902 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.915 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.915 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.925 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956885 (::1) 22.28ms
[D 20:09:16.935 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956875 (::1) 32.28ms
[D 20:09:16.945 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.955 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956889 (::1) 41.06ms
[D 20:09:16.975 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956900 (::1) 60.02ms
[D 20:09:16.975 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:16.985 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956887 (::1) 40.00ms
[D 20:09:17.005 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956879 (::1) 29.98ms
[D 20:09:17.005 LabApp] Path @jupyterlab\theme-light-extension\index.css served from C:\Users\bjfur\Anaconda3\share\jupyter\lab\themes@jupyterlab\theme-light-extension\index.css
[D 20:09:17.015 LabApp] 200 GET /lab/api/themes/@jupyterlab/theme-light-extension/index.css (::1) 10.00ms
[D 20:09:17.015 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.035 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.067 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956914 (::1) 32.21ms
[D 20:09:17.072 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.076 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956959 (::1) 5.14ms
[D 20:09:17.085 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.105 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.105 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.105 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.379 LabApp] Node v9.11.1
[D 20:09:17.413 LabApp] 200 GET /api/nbconvert?1568516956975 (::1) 328.00ms
[D 20:09:17.423 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956906 (::1) 317.99ms
[D 20:09:17.448 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956912 (::1) 342.73ms
[D 20:09:17.448 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956901 (::1) 342.73ms
[D 20:09:17.458 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.472 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956982 (::1) 14.38ms
[I 20:09:17.482 LabApp] Build is up to date
[D 20:09:17.492 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.492 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.492 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.492 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.492 LabApp] 200 GET /lab/api/build?1568516956932 (::1) 477.09ms
[D 20:09:17.502 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956983 (::1) 10.01ms
[D 20:09:17.522 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956985 (::1) 30.02ms
[D 20:09:17.539 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956987 (::1) 47.00ms
[D 20:09:17.550 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956988 (::1) 58.16ms
[D 20:09:17.567 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.571 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956990 (::1) 4.18ms
[D 20:09:17.583 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.605 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.633 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.646 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.659 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:17.679 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516956993 (::1) 96.62ms
[D 20:09:18.010 LabApp] 200 GET /api/nbconvert?1568516957044 (::1) 404.21ms
[D 20:09:18.010 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516957051 (::1) 377.43ms
[D 20:09:18.035 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516957052 (::1) 390.10ms
[D 20:09:18.035 LabApp] 200 GET /lab/api/settings/@jupyterlab/docmanager-extension:plugin?1568516957065 (::1) 375.60ms
[D 20:09:18.035 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:18.058 LabApp] 200 GET /api/sessions?1568516957082 (::1) 23.32ms
[D 20:09:18.081 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:18.081 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:18.106 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:18.126 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:18.136 LabApp] 200 GET /lab/api/extensions?1568516957120 (::1) 55.20ms
[D 20:09:18.151 LabApp] 200 GET /lab/api/workspaces/lab?1568516957159 (::1) 69.69ms
[D 20:09:18.174 LabApp] 200 GET /lab/api/extensions?1568516957204 (::1) 57.76ms
[D 20:09:18.238 LabApp] 200 GET /api/contents/?content=1&1568516957256 (::1) 111.32ms
[D 20:09:18.241 LabApp] Accepting token-authenticated connection from ::1
[W 20:09:18.261 LabApp] 404 GET /api/contents/ME30_redesign(local)/ME30_Lab1?1568516958162 (::1): No such file or directory: ME30_redesign(local)/ME30_Lab1
[W 20:09:18.267 LabApp] No such file or directory: ME30_redesign(local)/ME30_Lab1
[W 20:09:18.282 LabApp] 404 GET /api/contents/ME30_redesign(local)/ME30_Lab1?1568516958162 (::1) 42.73ms referer=http://localhost:8890/lab
[D 20:09:18.282 LabApp] Accepting token-authenticated connection from ::1
[W 20:09:18.306 LabApp] 404 GET /api/contents/ME30_redesign(local)/ME30_Lab1/ME30_Lab1_18JUL18.ipynb?content=0&1568516958166 (::1): No such file or directory: ME30_redesign(local)/ME30_Lab1/ME30_Lab1_18JUL18.ipynb
[W 20:09:18.326 LabApp] No such file or directory: ME30_redesign(local)/ME30_Lab1/ME30_Lab1_18JUL18.ipynb
[W 20:09:18.326 LabApp] 404 GET /api/contents/ME30_redesign(local)/ME30_Lab1/ME30_Lab1_18JUL18.ipynb?content=0&1568516958166 (::1) 43.73ms referer=http://localhost:8890/lab
[D 20:09:18.350 LabApp] Accepting token-authenticated connection from ::1
[W 20:09:18.350 LabApp] 404 GET /api/contents/ME%20106%20(local)/HW%20related/Fall%202019/addresses.ipynb?content=0&1568516958164 (::1): No such file or directory: ME 106 (local)/HW related/Fall 2019/addresses.ipynb
[W 20:09:18.350 LabApp] No such file or directory: ME 106 (local)/HW related/Fall 2019/addresses.ipynb
[W 20:09:18.374 LabApp] 404 GET /api/contents/ME%20106%20(local)/HW%20related/Fall%202019/addresses.ipynb?content=0&1568516958164 (::1) 24.16ms referer=http://localhost:8890/lab
[D 20:09:18.429 LabApp] Serving kernel resource from: C:\Users\bjfur\Anaconda3\share\jupyter\kernels\python3
[D 20:09:18.429 LabApp] 200 GET /kernelspecs/python3/logo-64x64.png (::1) 0.00ms
[D 20:09:19.034 LabApp] Accepting token-authenticated connection from ::1
[D 20:09:19.054 LabApp] 204 PUT /lab/api/workspaces/lab?1568516959027 (::1) 29.86ms
Browser Output
Javascript console is blank.
The text was updated successfully, but these errors were encountered:
Description
I have tried several approaches (Export Notebook As... (PDF, html) to print a Jupyterlab or Jupyter notebook that has images embedded in Markdown cells, but with no success in having the images show up in the exported file. The exported files are generated without errors and otherwise look as one would expect but without the images. The Markdown cells mark up the images with tags like:
<img src="AnacondaWindowsStart.PNG" alt="Anaconda Navigator Start Menu icon" width="200px"/>
and the referenced images are located in the same folder as the notebook. The images show up fine when viewing the rendered cells in the notebook, but they don't appear in the file when exported with the methods mentioned above. The only way I have been able to get images to appear in a pdf of a notebook is to print the notebook from Print Preview using Jupyter notebook. Jupyterlab does not seem to have a way to Preview a print, and simply printing the notebook to a pdf printer in Jupyterlab is not successful: everything is printed except the images. When I try a simple print as a pdf in Jupyterlab, a pdf is generated, but where the images should be, only the alt text strings are printed. Is there a workaround or settings I am missing?
Reproduce
[Jupyterlab]
Expected behavior
I expect to see what I see in the notebook when all the cells have been run (embedded images in Markdown cells showing up in the exported file)
Context
I'm running Windows 10
Firefox version 69.0
Jupyterlab 1.1.3
Jupyter notebook server 6.0.1
Python 3.7.3
IPython 7.8.0
MiKTeX 2.9
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: