Debian Codegraph @

tests/data/notebooks/outputs/Rmd_to_ipynb/ioslides.ipynb

raw
1 {
2 "cells": [
3 {
4 "cell_type": "raw",
5 "metadata": {},
6 "source": [
7 "---\n",
8 "title: \"Quick ioslides\"\n",
9 "subtitle: \"Slides generated using R, python and ioslides\"\n",
10 "author: \"Marc Wouts\"\n",
11 "date: \"June 15, 2018\"\n",
12 "output:\n",
13 " ioslides_presentation:\n",
14 " widescreen: true\n",
15 " smaller: true\n",
16 "editor_options:\n",
17 " chunk_output_type: console\n",
18 "---"
19 ]
20 },
21 {
22 "cell_type": "markdown",
23 "metadata": {},
24 "source": [
25 "## What is ioslides?\n",
26 "\n",
27 "This is the default format in rstudio for building interactive HTML presentations.\n",
28 "\n",
29 "Enjoy the [manual](https://rmarkdown.rstudio.com/ioslides_presentation_format.html)!\n",
30 "\n",
31 "These slides can be turned to a single HTML file with either a click on 'knitr' in rstudio, or, command line:\n",
32 "```bash\n",
33 "R -e 'rmarkdown::render(\"ioslides.Rmd\")'\n",
34 "```\n",
35 "\n",
36 "## A sample plot\n",
37 "\n",
38 "<div style=\"float: left; width: 30%;\">\n",
39 "Here we create a sample data set for plotting."
40 ]
41 },
42 {
43 "cell_type": "code",
44 "execution_count": null,
45 "metadata": {
46 "echo": true
47 },
48 "outputs": [],
49 "source": [
50 "import pandas as pd\n",
51 "x = pd.Series({'A':1, 'B':3, 'C':2})"
52 ]
53 },
54 {
55 "cell_type": "markdown",
56 "metadata": {
57 "lines_to_next_cell": 0
58 },
59 "source": [
60 "Then, in another column we plot. The R notebook code chunks have many [options](https://yihui.name/knitr/options/).\n",
61 "For this plot I chose not to display the source code.\n",
62 "</div>\n",
63 "\n",
64 "<div style=\"float: right; width: 70%;\">"
65 ]
66 },
67 {
68 "cell_type": "code",
69 "execution_count": null,
70 "metadata": {
71 "fig.height": 5,
72 "fig.width": 8,
73 "lines_to_next_cell": 0,
74 "tags": [
75 "remove_input"
76 ]
77 },
78 "outputs": [],
79 "source": [
80 "x.plot(kind='bar', title='Sample plot')"
81 ]
82 },
83 {
84 "cell_type": "markdown",
85 "metadata": {},
86 "source": [
87 "<div>"
88 ]
89 }
90 ],
91 "metadata": {
92 "jupytext": {
93 "cell_metadata_filter": "echo,tags,fig.width,fig.height,-all",
94 "main_language": "python",
95 "notebook_metadata_filter": "-all"
96 }
97 },
98 "nbformat": 4,
99 "nbformat_minor": 2
100 }