Skip to content

Instantly share code, notes, and snippets.

@tkf
Last active February 2, 2018 01:09
Show Gist options
  • Save tkf/31f56d9896f59da2f37a1b91320d16a2 to your computer and use it in GitHub Desktop.
Save tkf/31f56d9896f59da2f37a1b91320d16a2 to your computer and use it in GitHub Desktop.
.ipynb_checkpoints
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/plain": [
"f"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"\"\"\"\n",
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n",
"\n",
"\"\"\"\n",
"f() = nothing"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"search: fd for fma fld fft full fld1 find filt fill fft! fdio frexp foldr foldl\n",
"\n"
]
},
{
"data": {
"text/markdown": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
],
"text/plain": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"?f"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"search: fd for fma fld fft full fld1 find filt fill fft! fdio frexp foldr foldl\n",
"\n"
]
},
{
"data": {
"text/markdown": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
],
"text/plain": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"?f"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"flush(STDOUT)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"search: fd for fma fld fft full fld1 find filt fill fft! fdio frexp foldr foldl\n",
"\n"
]
},
{
"data": {
"text/markdown": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
],
"text/plain": [
"A function for docstring testing.\n",
"\n",
"```julia\n",
"function f()\n",
" map(1:10) do x\n",
" 2x\n",
" end\n",
"end\n",
"```\n"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"?f"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"flush(STDERR)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Julia 0.6.2",
"language": "julia",
"name": "julia-0.6"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "0.6.2"
},
"toc": {
"colors": {
"hover_highlight": "#DAA520",
"navigate_num": "#000000",
"navigate_text": "#333333",
"running_highlight": "#FF0000",
"selected_highlight": "#FFD700",
"sidebar_border": "#EEEEEE",
"wrapper_background": "#FFFFFF"
},
"moveMenuLeft": true,
"nav_menu": {
"height": "12px",
"width": "252px"
},
"navigate_menu": true,
"number_sections": true,
"sideBar": true,
"threshold": 4,
"toc_cell": false,
"toc_section_display": "block",
"toc_window_display": false,
"widenNotebook": false
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
docstring-test-nbconvert.ipynb: docstring-test-manual.ipynb
jupyter nbconvert --execute --ExecutePreprocessor.timeout=-1 \
--to notebook --output=$@ $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment