Debian Codegraph @

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

raw
1 {
2 "cells": [
3 {
4 "cell_type": "raw",
5 "metadata": {},
6 "source": [
7 "---\n",
8 "title: \"Test chunk options in Rmd/Jupyter conversion\"\n",
9 "author: \"Marc Wouts\"\n",
10 "date: \"June 16, 2018\"\n",
11 "---"
12 ]
13 },
14 {
15 "cell_type": "code",
16 "execution_count": null,
17 "metadata": {
18 "lines_to_next_cell": 2,
19 "name": "knitr_setup",
20 "tags": [
21 "remove_cell"
22 ]
23 },
24 "outputs": [],
25 "source": [
26 "%%R\n",
27 "knitr::opts_chunk$set(echo = FALSE, fig.width = 10, fig.height = 5)"
28 ]
29 },
30 {
31 "cell_type": "code",
32 "execution_count": null,
33 "metadata": {
34 "echo": true
35 },
36 "outputs": [],
37 "source": [
38 "import pandas as pd\n",
39 "x = pd.Series({'A':1, 'B':3, 'C':2})"
40 ]
41 },
42 {
43 "cell_type": "code",
44 "execution_count": null,
45 "metadata": {
46 "fig.height": 5,
47 "fig.width": 8,
48 "lines_to_next_cell": 0,
49 "name": "bar_plot",
50 "tags": [
51 "remove_input"
52 ]
53 },
54 "outputs": [],
55 "source": [
56 "x.plot(kind='bar', title='Sample plot')"
57 ]
58 },
59 {
60 "cell_type": "markdown",
61 "metadata": {},
62 "source": []
63 }
64 ],
65 "metadata": {
66 "kernelspec": {
67 "display_name": "Python",
68 "language": "python",
69 "name": "python3"
70 }
71 },
72 "nbformat": 4,
73 "nbformat_minor": 2
74 }