Working in VSCode with the Python and Jupyter extensions installed. My background is using rmarkdown, knitr/sweave, and LaTeX along with R to generate dynamic reports and notebook-like objext in R and I am trying to understand Python can(‘t) be used with Jupyter notebooks to create dynamic reports.
-
How do you reference objects created in code cells from within markdown cells in Jupyter notebooks? For example, your code cell contains foo = 5 and a subsequent markdown cell renders something like “the cost is {{foo}}” as “the cost is 5”. It looks like adding the Python markdown extension to Jupyter works but not sure how to do so/if I need to add an extension within VSCode – there’s an older post on this but I’m not sure if the jupyter extension even works or is supported in VSCode https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/python-markdown/readme.html?highlight=markdown#python-markdown
-
Is there a way to reference a code CELL in a jupyter notebook (rather than an object the cell creates per the question above) from a markdown cell?
-
Is there any way of executing and rendering Python code along with LaTeX, such as writing a report in a latex document and adding code cells like in a Jupyter notebook? I know jupyter notebooks support LaTeX equations in markdown via $ but lots of LaTeX functionality is missing (e.g. tabular environments).
-
More generally, what is a typical package or workflow for dynamic report generation with Python? I’d like to generate figures and tables containing the outputs of my code chunks alongside some text, all produced via Python, markdown, or LateX, and have the option to add captions, equations, and table/figure numbering that auto-updates as figures and tables. I’m used to either using rmarkdown, knitr/sweave, or base R + LaTeX to generate reports.
Thanks!
submitted by /u/portmanteaudition
[link] [comments]
r/learnpython Working in VSCode with the Python and Jupyter extensions installed. My background is using rmarkdown, knitr/sweave, and LaTeX along with R to generate dynamic reports and notebook-like objext in R and I am trying to understand Python can(‘t) be used with Jupyter notebooks to create dynamic reports. How do you reference objects created in code cells from within markdown cells in Jupyter notebooks? For example, your code cell contains foo = 5 and a subsequent markdown cell renders something like “the cost is {{foo}}” as “the cost is 5”. It looks like adding the Python markdown extension to Jupyter works but not sure how to do so/if I need to add an extension within VSCode – there’s an older post on this but I’m not sure if the jupyter extension even works or is supported in VSCode https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/python-markdown/readme.html?highlight=markdown#python-markdown Is there a way to reference a code CELL in a jupyter notebook (rather than an object the cell creates per the question above) from a markdown cell? Is there any way of executing and rendering Python code along with LaTeX, such as writing a report in a latex document and adding code cells like in a Jupyter notebook? I know jupyter notebooks support LaTeX equations in markdown via $ but lots of LaTeX functionality is missing (e.g. tabular environments). More generally, what is a typical package or workflow for dynamic report generation with Python? I’d like to generate figures and tables containing the outputs of my code chunks alongside some text, all produced via Python, markdown, or LateX, and have the option to add captions, equations, and table/figure numbering that auto-updates as figures and tables. I’m used to either using rmarkdown, knitr/sweave, or base R + LaTeX to generate reports. Thanks! submitted by /u/portmanteaudition [link] [comments]
Working in VSCode with the Python and Jupyter extensions installed. My background is using rmarkdown, knitr/sweave, and LaTeX along with R to generate dynamic reports and notebook-like objext in R and I am trying to understand Python can(‘t) be used with Jupyter notebooks to create dynamic reports.
-
How do you reference objects created in code cells from within markdown cells in Jupyter notebooks? For example, your code cell contains foo = 5 and a subsequent markdown cell renders something like “the cost is {{foo}}” as “the cost is 5”. It looks like adding the Python markdown extension to Jupyter works but not sure how to do so/if I need to add an extension within VSCode – there’s an older post on this but I’m not sure if the jupyter extension even works or is supported in VSCode https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/python-markdown/readme.html?highlight=markdown#python-markdown
-
Is there a way to reference a code CELL in a jupyter notebook (rather than an object the cell creates per the question above) from a markdown cell?
-
Is there any way of executing and rendering Python code along with LaTeX, such as writing a report in a latex document and adding code cells like in a Jupyter notebook? I know jupyter notebooks support LaTeX equations in markdown via $ but lots of LaTeX functionality is missing (e.g. tabular environments).
-
More generally, what is a typical package or workflow for dynamic report generation with Python? I’d like to generate figures and tables containing the outputs of my code chunks alongside some text, all produced via Python, markdown, or LateX, and have the option to add captions, equations, and table/figure numbering that auto-updates as figures and tables. I’m used to either using rmarkdown, knitr/sweave, or base R + LaTeX to generate reports.
Thanks!
submitted by /u/portmanteaudition
[link] [comments]