Google Colab - Exporting to a PDF Format!

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 72

  • @sbzguadafoc
    @sbzguadafoc 6 місяців тому +4

    This is absolutely great! You started off by addressing the number 1 problem in printing directly from Colab. You helped me a lot! Thank you Adrian

  • @peytonpolitewicz7829
    @peytonpolitewicz7829 10 місяців тому +1

    Thanks for such a helpful and comprehensive walkthrough!

  • @lowpompuli3270
    @lowpompuli3270 2 роки тому +1

    This is probably one of the best videos on UA-cam!

  • @AdityaGupta-wt2sm
    @AdityaGupta-wt2sm 2 роки тому +1

    😄thanks dude, I was trying to create it pdf but was just getting a pdf in black and white, now I can make pdf in a great coloured quality....🙏

  • @KarmaTrain737
    @KarmaTrain737 Рік тому

    Amazing!! Thank you! The second method worked for me, to convert Colab notebooks to PDFs. Finally..

  • @ravinathaariyarathna6753
    @ravinathaariyarathna6753 3 місяці тому +1

    Thanks a lot. This is was very useful for my to submit my assignment.

  • @spencerhalverson80
    @spencerhalverson80 2 роки тому +1

    This is so awesome. I wish I had learned this years ago!

  • @menkiguo7805
    @menkiguo7805 2 роки тому +1

    This is amazing!!! My TA told me just print it which mess all my graphs

  • @evanmhowington
    @evanmhowington 7 місяців тому

    Thanks. Pycharm Professional makes it difficult to extract pdfs of jupyter notebook. I don't want to have to go back and forth to colab just to generate pdfs. I used the HTML method you described in this video and it worked perfectly. Thanks!

  • @blenklofman
    @blenklofman Рік тому

    Adrian Dolinay is the best Python channel on UA-cam

  • @MrJdubs14
    @MrJdubs14 2 роки тому

    Just what I was looking for - thanks so much!

  • @sirginirgin4808
    @sirginirgin4808 2 роки тому

    Many thanks, Adrian. I really appreciate your explanation.

  • @novadwilestari7730
    @novadwilestari7730 2 роки тому +1

    this tutorial really helped me, thank you!

  • @MrKiranmehta
    @MrKiranmehta 10 місяців тому

    Thanks!
    This got rid of multiple issues for me when printing directly from Colab.
    - output cells with scroll bar get truncated.
    - missing pages/charts for long notebooks

  • @camilacoutodacosta2869
    @camilacoutodacosta2869 Рік тому

    Excelent! That was very helpful to me.

  • @ajitjadhav6785
    @ajitjadhav6785 9 місяців тому +3

    my plotly visuals are not visible in the pdf, what can be the reason for this?

  • @shahrizal0715
    @shahrizal0715 6 місяців тому

    Thanks for sharing... This was usefull for my project idea... Thanks a lot

  • @njerimuchiri7233
    @njerimuchiri7233 2 роки тому +9

    How are you dragging and dropping the file?

    • @eliazjule8237
      @eliazjule8237 2 роки тому +2

      Instead of dragging it you can download the file (File -> Download -> .ipynb) and then import it (the sheet whit an arrow )

  • @harrysun23w
    @harrysun23w 2 роки тому

    Great video and explanation!

  • @wiktorjordeczka2763
    @wiktorjordeczka2763 Рік тому

    Thank you! You saved me!

  • @ujjalkrdutta7854
    @ujjalkrdutta7854 Рік тому

    thanks, helpful video!

  • @zhenfeicao8147
    @zhenfeicao8147 Рік тому

    Thank you! It's helpful!

  • @akshatsirohi6179
    @akshatsirohi6179 6 місяців тому

    thanks man you saved me

  • @thaissantarosavasconcelos8301
    @thaissantarosavasconcelos8301 3 роки тому +1

    Thanks for sharing!

  • @GlobalPulseStream
    @GlobalPulseStream Рік тому

    thank you for sharing it

  • @ivanjo10
    @ivanjo10 10 місяців тому

    thx master!!! you save me!!

  • @datayogi_
    @datayogi_ Рік тому +2

    Hi Adrian, I have some visuals also in my python file and they are excluded in the pdf while converting by the second method. Any possible way to add visuals also in PDF?

  • @MrKrtek00
    @MrKrtek00 2 роки тому

    Nice! Thank you!

  • @bubblebath2892
    @bubblebath2892 6 місяців тому

    If you do this :under File - Print -Click on it , from the printers ..select 'Microsoft Print to PDF' and then hit Print ..it will ask you the location where you want tosave this PDF and you just got your PDF ...you can print it later though. However this PDF will be balck and white and the code cells cannot be distinguished from the output cells when you print them ( like no color difference ) ...everything is just normal text

  • @juansebastianbelalcazarram3739

    Muchas gracias, fue de mucha ayuda

  • @renato.machado
    @renato.machado 3 місяці тому

    Thanks!

  • @anchorsanyuktasharma2086
    @anchorsanyuktasharma2086 Рік тому

    Life saving !

  • @Razer692
    @Razer692 Рік тому

    Hey there, thanks for the video!
    In case someone is interested how to refer directly to a file residing on Google Drive, here is the command:
    from google.colab import drive
    drive.mount('./mount')
    !jupyter nbconvert --to html 'mount/My Drive/Colab Notebooks/NameOfFile.ipynb'

  • @sumiyusuf6671
    @sumiyusuf6671 Рік тому

    Hey Adrian, actually i'm new to google colab and my doubt is how we drag and drop the notebook to files in nbconvert package. Please help me.

  • @tata1605ful
    @tata1605ful 2 роки тому +1

    I tried to follow all the steps, and it says nbconvert command is not found in my Google Colab

    • @AdrianDolinay
      @AdrianDolinay  2 роки тому +1

      Did you run the below code block first?
      !sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic

    • @tata1605ful
      @tata1605ful 2 роки тому +1

      @@AdrianDolinay No, I did not, sorry. Thank you for your reply so much. Now it's all working.

  • @ceoplnng
    @ceoplnng 2 роки тому +1

    Thanks Adrian, but I am having some issues with Plotly graphs. Matplotlib ones are fine, but Plotly ones are not showing up in HTML.

    • @AdrianDolinay
      @AdrianDolinay  2 роки тому

      Run the below code in the notebook you are looking to render:
      import plotly.io as pio
      pio.renderers.default='notebook'

    • @AdrianDolinay
      @AdrianDolinay  2 роки тому

      Stack Overflow post that speaks about the issue: stackoverflow.com/questions/66210187/exporting-jupyter-notebook-with-plotly-to-html-not-displaying-correctly-when-off

  • @doria272
    @doria272 7 місяців тому

    Excelent!!!

  • @catafest
    @catafest 2 роки тому

    Is there any possibility to convert it to epub format? Thank you for sharing.

  • @mahithaganni5783
    @mahithaganni5783 9 місяців тому

    Thanks man

  • @nirbhay2417
    @nirbhay2417 5 місяців тому +1

    its giving this error: raise OSError(
    OSError: xelatex not found on PATH, if you have not installed xelatex you may need to do so.
    can someone help please?

    • @AdrianDolinay
      @AdrianDolinay  5 місяців тому

      @@nirbhay2417 What was the code snippet for the error? And did you run "
      !sudo apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic" first?

    • @nirbhay2417
      @nirbhay2417 5 місяців тому +2

      @@AdrianDolinay It worked now..
      I ran this extra command: !sudo apt-get update
      now its creating the pdf from nbconvert...
      Thanks a lot for your prompt response!!

  • @andersoncanteli
    @andersoncanteli 2 роки тому

    Nice! Thanks!

  • @matheusdallorto1425
    @matheusdallorto1425 Рік тому

    Unfortunately the notebook isn't in your github repository anymore

    • @AdrianDolinay
      @AdrianDolinay  Рік тому

      Have an updated repo, see the link below. Hope it helps!
      github.com/ad17171717/UA-cam-Tutorials/tree/main/Google%20Colab%20Tutorials/Exporting%20to%20a%20PDF%20Format

  • @holyshit922
    @holyshit922 Рік тому

    2nd method look nice but you have only 15 GB on Google drive and loss of one half GB on tex is quite large

  • @pierlaurenzi
    @pierlaurenzi 2 роки тому

    Great content. Any way to print without the code cells?

    • @AdrianDolinay
      @AdrianDolinay  2 роки тому +1

      If you want to get rid of the input cells you can use the code below
      !jupyter nbconvert --to pdf --no-input /content/KNN

    • @pierlaurenzi
      @pierlaurenzi 2 роки тому +1

      @@AdrianDolinay thank you so much. Couldnt find this info anywhere lol

    • @Ocara31
      @Ocara31 2 роки тому +1

      Hi, Pier Laurenzi, I couldn't find this either. Thanks to you and Adrian now I can. I highly recommend a Medium article with this. It is extremely useful!!!

  • @mnaufallilman4051
    @mnaufallilman4051 2 роки тому

    thank you

  • @techinformation8189
    @techinformation8189 5 місяців тому

    How to drag and drop bro...its not working on my computer

    • @AdrianDolinay
      @AdrianDolinay  5 місяців тому

      If you are having an issue with the drag and drop you can instead select the folder icon labeled "Files". In the top left under the "Files" title there is a paper icon with an arrow labeled "Upload to Session Storage". You can select that then upload your file. Hope this helps!

  • @chavisaa2103
    @chavisaa2103 2 роки тому

    Thank you! It works very well. I was wondering if there's a way we can add the author and change the title or the date? I'm planning to submit my assignment using this method. So, if I can customize the title, it would be perfect.

    • @AdrianDolinay
      @AdrianDolinay  2 роки тому +1

      Hello! The GitHub thread below discusses this issues. Looks like the metadata needs to be edited. Hope this helps!
      github.com/jupyter/nbconvert/issues/249

  • @johniitjodhpur
    @johniitjodhpur Рік тому

    How to avoid the pips output in pdf?

    • @AdrianDolinay
      @AdrianDolinay  Рік тому

      You can clear the pip output with "Clear Cell" within Jupyter or Google Colab. If you want to get rid of the cell completely, delete the cell and save the notebook then you can reinsert the pip installs once you've converted it to a PDF

  • @eudevando
    @eudevando Рік тому

    gratiluz 💖

  • @usfakbari2698
    @usfakbari2698 2 роки тому

    it's so usefull

  • @hariveeraramaprasad7118
    @hariveeraramaprasad7118 Рік тому

    thnq

  • @PedroHenrique-kv5qk
    @PedroHenrique-kv5qk 2 роки тому

    HOW CAN I DO THIS

  • @陳立杰-r1h
    @陳立杰-r1h 9 місяців тому

    not working sad

  • @yersonenriquecervantes
    @yersonenriquecervantes 8 місяців тому

    Obviusly cuadro¡

  • @israelip
    @israelip 2 роки тому