Skip to content

Instantly share code, notes, and snippets.

@BenRussert
Created May 22, 2019 04:27
Show Gist options
  • Save BenRussert/aa41b3cb02b04fab5b7a35885dbb4580 to your computer and use it in GitHub Desktop.
Save BenRussert/aa41b3cb02b04fab5b7a35885dbb4580 to your computer and use it in GitHub Desktop.
{
"ipython": {
"idents": [],
"header": {
"version": "5.3",
"date": "2019-05-22T03:45:39.378917Z",
"session": "2ffc1de3-98980ce34645c78efbb4d850",
"username": "ben",
"msg_type": "inspect_reply",
"msg_id": "49543fd2-0cd67c84eff377d9f6f483c3"
},
"parent_header": {
"username": "ben",
"session": "00000000-0000-0000-0000-000000000000",
"msg_type": "inspect_request",
"msg_id": "inspect_df8ef7e1-d5f9-49d1-926b-42234c0784b3",
"date": "2019-05-22T03:45:39.376000Z",
"version": "5.0"
},
"metadata": {},
"content": {
"status": "ok",
"data": {
"text/plain": "\u001b[0;31mDocstring:\u001b[0m\nprint(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n\nPrints the values to a stream, or to sys.stdout by default.\nOptional keyword arguments:\nfile: a file-like object (stream); defaults to the current sys.stdout.\nsep: string inserted between values, default a space.\nend: string appended after the last value, default a newline.\nflush: whether to forcibly flush the stream.\n\u001b[0;31mType:\u001b[0m builtin_function_or_method\n"
},
"metadata": {},
"found": true
},
"buffers": []
},
"ijulia": {
"idents": [],
"header": {
"msg_id": "UUID(\"69fa4cb8-948c-4625-92f3-7a9d3bbbe7df\")",
"msg_type": "inspect_reply",
"username": "ben",
"date": "2019-05-21T21:47:29.787",
"version": "5.0",
"session": "00000000-0000-0000-0000-000000000000"
},
"parent_header": {
"msg_id": "inspect_a260e13d-1207-47af-a40d-2ff2820047e8",
"msg_type": "inspect_request",
"username": "ben",
"date": "2019-05-22T03:47:29.545Z",
"version": "5.0",
"session": "00000000-0000-0000-0000-000000000000"
},
"metadata": {},
"content": {
"status": "ok",
"data": {
"text/plain": "\u001b[36m println([io::IO], xs...)\u001b[39m\n\n Print (using \u001b[36mprint\u001b[39m) \u001b[36mxs\u001b[39m followed by a newline. If \u001b[36mio\u001b[39m is not supplied, prints\n to \u001b[36mstdout\u001b[39m.\n\n\u001b[1m Examples\u001b[22m\n\u001b[1m ≡≡≡≡≡≡≡≡≡≡\u001b[22m\n\n\u001b[36m julia> println(\"Hello, world\")\u001b[39m\n\u001b[36m Hello, world\u001b[39m\n\u001b[36m \u001b[39m\n\u001b[36m julia> io = IOBuffer();\u001b[39m\n\u001b[36m \u001b[39m\n\u001b[36m julia> println(io, \"Hello, world\")\u001b[39m\n\u001b[36m \u001b[39m\n\u001b[36m julia> String(take!(io))\u001b[39m\n\u001b[36m \"Hello, world\\n\"\u001b[39m",
"text/markdown": "```\nprintln([io::IO], xs...)\n```\n\nPrint (using [`print`](@ref)) `xs` followed by a newline. If `io` is not supplied, prints to [`stdout`](@ref).\n\n# Examples\n\n```jldoctest\njulia> println(\"Hello, world\")\nHello, world\n\njulia> io = IOBuffer();\n\njulia> println(io, \"Hello, world\")\n\njulia> String(take!(io))\n\"Hello, world\\n\"\n```\n",
"text/latex": "\\begin{verbatim}\nprintln([io::IO], xs...)\n\\end{verbatim}\nPrint (using \\href{@ref}{\\texttt{print}}) \\texttt{xs} followed by a newline. If \\texttt{io} is not supplied, prints to \\href{@ref}{\\texttt{stdout}}.\n\n\\section{Examples}\n\\begin{verbatim}\njulia> println(\"Hello, world\")\nHello, world\n\njulia> io = IOBuffer();\n\njulia> println(io, \"Hello, world\")\n\njulia> String(take!(io))\n\"Hello, world\\n\"\n\\end{verbatim}\n"
},
"found": true
},
"buffers": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment