Google Colab - Exporting to a PDF Format!

Поделиться
HTML-код
  • Опубликовано: 24 окт 2024

Комментарии • 72

  • @sbzguadafoc
    @sbzguadafoc 5 месяцев назад +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

  • @evanmhowington
    @evanmhowington 5 месяцев назад

    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!

  • @MrKiranmehta
    @MrKiranmehta 8 месяцев назад

    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

  • @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....🙏

  • @peytonpolitewicz7829
    @peytonpolitewicz7829 9 месяцев назад +1

    Thanks for such a helpful and comprehensive walkthrough!

  • @lowpompuli3270
    @lowpompuli3270 2 года назад +1

    This is probably one of the best videos on RUclips!

  • @KarmaTrain737
    @KarmaTrain737 Год назад

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

  • @ravinathaariyarathna6753
    @ravinathaariyarathna6753 2 месяца назад +1

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

  • @menkiguo7805
    @menkiguo7805 2 года назад +1

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

  • @blenklofman
    @blenklofman Год назад

    Adrian Dolinay is the best Python channel on RUclips

  • @ajitjadhav6785
    @ajitjadhav6785 8 месяцев назад +2

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

  • @shahrizal0715
    @shahrizal0715 5 месяцев назад

    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 )

  • @spencerhalverson80
    @spencerhalverson80 2 года назад +1

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

  • @bubblebath2892
    @bubblebath2892 5 месяцев назад

    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

  • @camilacoutodacosta2869
    @camilacoutodacosta2869 10 месяцев назад

    Excelent! That was very helpful to me.

  • @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!

  • @ujjalkrdutta7854
    @ujjalkrdutta7854 Год назад

    thanks, helpful video!

  • @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?

  • @zhenfeicao8147
    @zhenfeicao8147 Год назад

    Thank you! It's helpful!

  • @wiktorjordeczka2763
    @wiktorjordeczka2763 Год назад

    Thank you! You saved me!

  • @akshatsirohi6179
    @akshatsirohi6179 5 месяцев назад

    thanks man you saved me

  • @ivanjo10
    @ivanjo10 8 месяцев назад

    thx master!!! you save me!!

  • @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

  • @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'

  • @holyshit922
    @holyshit922 11 месяцев назад

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

  • @GlobalPulseStream
    @GlobalPulseStream Год назад

    thank you for sharing it

  • @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.

  • @harrysun23w
    @harrysun23w 2 года назад

    Great video and explanation!

  • @thaissantarosavasconcelos8301
    @thaissantarosavasconcelos8301 2 года назад +1

    Thanks for sharing!

  • @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.

  • @juansebastianbelalcazarram3739

    Muchas gracias, fue de mucha ayuda

  • @catafest
    @catafest 2 года назад

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

  • @MrKrtek00
    @MrKrtek00 2 года назад

    Nice! Thank you!

  • @nirbhay2417
    @nirbhay2417 3 месяца назад +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  3 месяца назад

      @@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 3 месяца назад +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!!

  • @renato.machado
    @renato.machado Месяц назад

    Thanks!

  • @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

  • @mahithaganni5783
    @mahithaganni5783 8 месяцев назад

    Thanks man

  • @doria272
    @doria272 6 месяцев назад

    Excelent!!!

  • @anchorsanyuktasharma2086
    @anchorsanyuktasharma2086 Год назад

    Life saving !

  • @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/RUclips-Tutorials/tree/main/Google%20Colab%20Tutorials/Exporting%20to%20a%20PDF%20Format

  • @techinformation8189
    @techinformation8189 4 месяца назад

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

    • @AdrianDolinay
      @AdrianDolinay  4 месяца назад

      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!

  • @andersoncanteli
    @andersoncanteli 2 года назад

    Nice! Thanks!

  • @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!!!

  • @usfakbari2698
    @usfakbari2698 2 года назад

    it's so usefull

  • @mnaufallilman4051
    @mnaufallilman4051 Год назад

    thank you

  • @eudevando
    @eudevando Год назад

    gratiluz 💖

  • @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

  • @陳立杰-r1h
    @陳立杰-r1h 7 месяцев назад

    not working sad

  • @hariveeraramaprasad7118
    @hariveeraramaprasad7118 Год назад

    thnq

  • @PedroHenrique-kv5qk
    @PedroHenrique-kv5qk 2 года назад

    HOW CAN I DO THIS

  • @israelip
    @israelip 2 года назад

  • @yersonenriquecervantes
    @yersonenriquecervantes 7 месяцев назад

    Obviusly cuadro¡