I would like to have a cell's content written out to a pdf file in Google Colab.
I know how to use %%writefile magic command to write contents to a txt file:
%%writefile
%%writefile file.txt contents of my txt file
I know how to convert the whole notebook to pdf.
I would like to have some solution similar to:
%%writemypdf file.pdf lines in my pdf
Is this possible?
2.1m questions
2.1m answers
60 comments
57.0k users