OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to embed pdfs files in jupyter notebook on Github

  • Thread starter Thread starter Baktaawar
  • Start date Start date
B

Baktaawar

Guest
So I have few pdfs files which I uploaded to my repository on Github. Now I am uploding a jupyter notebook file in the same directory as the pdf files on github and want to display pdfs inside the jupyter notebook.

I used the following method to embed pdfs in a notebook.

Code:
from IPython.display import IFrame
IFrame("https://github.com/user/first.pdf", width=900, height=800)

Now the same thing works when I do this on my local laptop where I store the pdfs in a directory and link that to the jupyter notebook file on my laptop. I can see the pdfs inline too.

However when I do the same thing on Github, it doesn't show the pdfs and get the following thing:

enter image description here

So am not sure why it is not able to link the pdfs stored on the same repository on github and display them while it works on my local system

Any help?

Thanks
<p>So I have few pdfs files which I uploaded to my repository on Github. Now I am uploding a jupyter notebook file in the same directory as the pdf files on github and want to display pdfs inside the jupyter notebook. </p>

<p>I used the following method to embed pdfs in a notebook. </p>

<pre><code>from IPython.display import IFrame
IFrame("https://github.com/user/first.pdf", width=900, height=800)
</code></pre>

<p>Now the same thing works when I do this on my local laptop where I store the pdfs in a directory and link that to the jupyter notebook file on my laptop. I can see the pdfs inline too. </p>

<p>However when I do the same thing on Github, it doesn't show the pdfs and get the following thing: </p>

<p><a href="https://i.sstatic.net/ToTay.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ToTay.png" alt="enter image description here"></a></p>

<p>So am not sure why it is not able to link the pdfs stored on the same repository on github and display them while it works on my local system </p>

<p>Any help? </p>

<p>Thanks</p>
 
Top