jupyter / jupyter/notebook

Hyperlink in markdown cell to pdf document stopped working

Open
#3,652 16 comments 3 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

I have a large number of Jupyter Notebooks and in many of them I have hyperlinks to locally stored pdf documents. Today on my iMac the links stopped working. When clicking on a link, a new tab is opened with the proper address, but the page is just black. When I do this on my MacBook with exactly the same Jupyter Notebook, it works ok. Up to yesterday I had no problems. I have tried a number of things to resolve this, amongst others I normally work with Google Chrome, but I switched to Safari and had the same problem. When opening the pdf in either Chrome or Safari from Finder, it works fine. So it looks like Jupyter Notebook issue. When executing the hyperlink in the notebook, I get the following entry in the log file:
[I 21:56:01.222 NotebookApp] 302 GET /notebooks/Cookbooks/Git%20%26%20GitHub/books/Pro_Git.pdf (::1) 1.01ms

I get the same entry on MacBook where it works ok.

A screenshot of the page after trying to load the pdf is attached
![screen shot 2018-05-31 at 10 03 17 pm](https://user-images.githubusercontent.com/9377284/40781277-9c267104-651e-11e8-8cc9-b7c860a929c2.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the local PDF hyperlink failure in a Jupyter Notebook on the affected iMac, comparing Chrome and Safari with the same notebook on the working MacBook. Start with the logged 302 request and the attached screenshot; the issue is resolved when locally linked PDF documents open normally from notebook cells.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.