Sample Workshop with Embedded Notebook

June 6, 2024

python jupyter Rmd demo

Sample Workshop: Embedding Notebooks and Rmd

Workshop Overview

This workshop demonstrates how you can present interactive, code-based materials within a workshop page. Below are examples of how to link and embed Jupyter notebooks and R Markdown files.

Materials

Embedded Notebook (HTML Preview)

Embedded R Markdown (HTML Preview)


Tutorial Content

You can add step-by-step instructions, code snippets, or summaries here. The embedded iframes above will show rendered HTML versions of your Jupyter notebook and R Markdown report. To generate these HTML files, export your notebook and Rmd to HTML and place them in the public/notebooks/ directory.

# Example: Export notebook to HTML
jupyter nbconvert --to html sample-notebook.ipynb --output-dir=public/notebooks

# Example: Render Rmd to HTML
Rscript -e "rmarkdown::render('sample-report.Rmd', output_dir='public/notebooks')"

Tip: For true interactivity, link to Binder, Colab, or Shiny as shown above.