Queries Regarding Code Insertion & Execution In A Blog #3035
-
|
I had a few questions:
My situation: I am trying to convert some Deep learning model codes into a blog from the fast.ai course.` I tried to include code blocks in a Also, can I add a Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
That code is likely running on your machine. There's a difference in how we process .ipynb files compared to .qmd files. By default, we do not execute ipynb files, and instead we use the results that will be included in them (since in Jupyter notebooks, you can save the result of an execution in the notebook itself). For a .qmd file, on the other hand, we have to execute all code cells (since we certainly won't have access to previous results). To answer your question about what is a better option between .ipynb and .qmd files, it depends on what you're attempting to do. If your notebook file includes results that can only be generated by (for example) a machine with access to a GPU or TPU, then you're probably going to need to use .ipynb files as they are. |
Beta Was this translation helpful? Give feedback.
quarto renderandquarto previewhappen locally on your machine.That code is likely running on your machine. There's a difference in how we process .ipynb files compared to .qmd files. By default, we do not execute ipynb files, and instead we use the results that will be included in them (since in Jupyter notebooks, you can save the result of an execution in the notebook itself).
For a .qmd file, on the other hand, we have to execute all code cells (since we certainly won't have access to previous results).
To answer your question about what is a better op…