Last active
September 10, 2025 14:03
-
-
Save williambdean/55454f168437a4d8cb5b308e199ff12d to your computer and use it in GitHub Desktop.
Print function python code from notebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "code", | |
| "execution_count": 1, | |
| "id": "ea658982-af34-4c26-b27a-8234bfbda1d9", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [ | |
| "hide-output" | |
| ] | |
| }, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "Requirement already satisfied: rich in ./.venv/lib/python3.10/site-packages (13.7.1)\n", | |
| "Requirement already satisfied: markdown-it-py>=2.2.0 in ./.venv/lib/python3.10/site-packages (from rich) (3.0.0)\n", | |
| "Requirement already satisfied: pygments<3.0.0,>=2.13.0 in ./.venv/lib/python3.10/site-packages (from rich) (2.17.2)\n", | |
| "Requirement already satisfied: mdurl~=0.1 in ./.venv/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich) (0.1.2)\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "!pip install rich" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "dd5f2263-b4bf-41d2-b2ec-1c800dcae6d1", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "source": [ | |
| "# Overview\n", | |
| "\n", | |
| "Using the [builtin `inspect` module](https://docs.python.org/3/library/inspect.html) and amazing [`rich` package](https://rich.readthedocs.io/en/stable/index.html), we can make a function to print python code.\n", | |
| "\n", | |
| "This function will work on various objects like functions, classes, and modules and will display \n", | |
| "\n", | |
| "- code\n", | |
| "- docstring\n", | |
| "- comments\n", | |
| "- signature\n", | |
| "- type hints\n", | |
| "\n", | |
| "Below is the function:" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 2, | |
| "id": "3e451471-2aff-4bcf-ae63-9a0de2d0301b", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "outputs": [], | |
| "source": [ | |
| "import inspect\n", | |
| "\n", | |
| "from rich.console import Console\n", | |
| "from rich.syntax import Syntax\n", | |
| "\n", | |
| "def print_code(obj): \n", | |
| " \"\"\"Print the code of a python object.\"\"\"\n", | |
| " console = Console()\n", | |
| " # Comment in the function\n", | |
| " console.print(Syntax(inspect.getsource(obj), \"python\"))" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "595fd598-78b6-4c3a-8d96-6483bb94c652", | |
| "metadata": {}, | |
| "source": [ | |
| "## Examples\n", | |
| "\n", | |
| "### Functions" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 3, | |
| "id": "744ee1ef-ff56-4bc0-897d-5bf029bfc148", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">def</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #a6e22e; text-decoration-color: #a6e22e; background-color: #272822\">print_code</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">(obj): </span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"\"\"Print the code of a python object.\"\"\"</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> console </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">=</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> Console()</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># Comment in the function</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> console</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">print(Syntax(inspect</span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">.</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">getsource(obj), </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"python\"</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">))</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"background-color: #272822\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;102;217;239;48;2;39;40;34mdef\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;166;226;46;48;2;39;40;34mprint_code\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mobj\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\"\"Print the code of a python object.\"\"\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mconsole\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m=\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mConsole\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;149;144;119;48;2;39;40;34m# Comment in the function\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mconsole\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mprint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mSyntax\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34minspect\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m.\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mgetsource\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mobj\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34mpython\u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[48;2;39;40;34m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "print_code(print_code)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "dfd7102a-b1a1-4d9d-86b7-48cdd26a6b8a", | |
| "metadata": {}, | |
| "source": [ | |
| "Even the type hints will be displayed." | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 4, | |
| "id": "1f362168-ed8b-4f2a-9690-22e2afbea083", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">def</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #a6e22e; text-decoration-color: #a6e22e; background-color: #272822\">fn_with_type_hints</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">(x: int, y: int) </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">-></span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> int: </span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">return</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> x </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">**</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">2</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">+</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> y </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">**</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">2</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"background-color: #272822\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;102;217;239;48;2;39;40;34mdef\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;166;226;46;48;2;39;40;34mfn_with_type_hints\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mx\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34my\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m-\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m>\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;102;217;239;48;2;39;40;34mreturn\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mx\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m*\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m*\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m2\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m+\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34my\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m*\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m*\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m2\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[48;2;39;40;34m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "def fn_with_type_hints(x: int, y: int) -> int: \n", | |
| " return x ** 2 + y ** 2\n", | |
| "\n", | |
| "print_code(fn_with_type_hints)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "9f62d512-ca3a-4219-8a1e-b199e951e33c", | |
| "metadata": {}, | |
| "source": [ | |
| "The result is pretty true to what is actually written!\n", | |
| "\n", | |
| "Just watch out for objects written in C" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 5, | |
| "id": "33272f26-e51c-4efe-9139-bb63af52aac9", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "name": "stdout", | |
| "output_type": "stream", | |
| "text": [ | |
| "module, class, method, function, traceback, frame, or code object was expected, got builtin_function_or_method\n" | |
| ] | |
| } | |
| ], | |
| "source": [ | |
| "try: \n", | |
| " print_code(print)\n", | |
| "except TypeError as e: \n", | |
| " print(e)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "bf9a1e4b-7480-4dba-b4d9-0b12216b29c2", | |
| "metadata": {}, | |
| "source": [ | |
| "### Classes & Modules\n", | |
| "\n", | |
| "This takes up a bit more real estate, but it works as well" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 6, | |
| "id": "8fabcd9f-8fd1-47dd-adc4-26ee1d0121f8", | |
| "metadata": { | |
| "editable": true, | |
| "scrolled": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [ | |
| "hide-output" | |
| ] | |
| }, | |
| "outputs": [], | |
| "source": [ | |
| "# print_code(Console)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 7, | |
| "id": "2a0909fd-4b32-4422-b397-d0d5300211c4", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [ | |
| "hide-output" | |
| ] | |
| }, | |
| "outputs": [], | |
| "source": [ | |
| "# print_code(inspect)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "50ca78d6-e4b7-4c10-8c6e-64190e73a1a5", | |
| "metadata": {}, | |
| "source": [ | |
| "# Customization\n", | |
| "\n", | |
| "The `Console` and `Syntax` objects have a lot of functionality for customization. Read more in the wonderful rich documentation linked at the top.\n", | |
| "\n", | |
| "Here are some options to play around with:" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 8, | |
| "id": "6c756a19-e9ed-43d2-93b1-1d1daf354caf", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ | |
| "\u001b[0;31mSignature:\u001b[0m \u001b[0minspect\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mgetsource\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;31mDocstring:\u001b[0m\n", | |
| "Return the text of the source code for an object.\n", | |
| "\n", | |
| "The argument may be a module, class, method, function, traceback, frame,\n", | |
| "or code object. The source code is returned as a single string. An\n", | |
| "OSError is raised if the source code cannot be retrieved.\n", | |
| "\u001b[0;31mFile:\u001b[0m ~/.pyenv/versions/3.10.13/lib/python3.10/inspect.py\n", | |
| "\u001b[0;31mType:\u001b[0m function" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "inspect.getsource?" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 9, | |
| "id": "34d3c455-403e-4755-8908-291389ab40e0", | |
| "metadata": {}, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ | |
| "\u001b[0;31mInit signature:\u001b[0m\n", | |
| "\u001b[0mConsole\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mcolor_system\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mLiteral\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'auto'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'standard'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'256'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'truecolor'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'windows'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'auto'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mforce_terminal\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mbool\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mforce_jupyter\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mbool\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mforce_interactive\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mbool\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0msoft_wrap\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mtheme\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mrich\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtheme\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mTheme\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mfile\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mIO\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mquiet\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mwidth\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mheight\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mstyle\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mForwardRef\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'Style'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mNoneType\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mno_color\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mbool\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mtab_size\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mint\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m8\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mrecord\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mmarkup\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0memoji\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0memoji_variant\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mLiteral\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'emoji'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'text'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mhighlight\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mlog_time\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mlog_path\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mlog_time_format\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mCallable\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mdatetime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdatetime\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrich\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mText\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'[%X]'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mhighlighter\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mForwardRef\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'HighlighterType'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m<\u001b[0m\u001b[0mrich\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhighlighter\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mReprHighlighter\u001b[0m \u001b[0mobject\u001b[0m \u001b[0mat\u001b[0m \u001b[0;36m0x7f5e0e6f3f10\u001b[0m\u001b[0;34m>\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mlegacy_windows\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mbool\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0msafe_box\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mget_datetime\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mCallable\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mdatetime\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdatetime\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mget_time\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mCallable\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfloat\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0m_environ\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mMapping\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;31mDocstring:\u001b[0m \n", | |
| "A high level console interface.\n", | |
| "\n", | |
| "Args:\n", | |
| " color_system (str, optional): The color system supported by your terminal,\n", | |
| " either ``\"standard\"``, ``\"256\"`` or ``\"truecolor\"``. Leave as ``\"auto\"`` to autodetect.\n", | |
| " force_terminal (Optional[bool], optional): Enable/disable terminal control codes, or None to auto-detect terminal. Defaults to None.\n", | |
| " force_jupyter (Optional[bool], optional): Enable/disable Jupyter rendering, or None to auto-detect Jupyter. Defaults to None.\n", | |
| " force_interactive (Optional[bool], optional): Enable/disable interactive mode, or None to auto detect. Defaults to None.\n", | |
| " soft_wrap (Optional[bool], optional): Set soft wrap default on print method. Defaults to False.\n", | |
| " theme (Theme, optional): An optional style theme object, or ``None`` for default theme.\n", | |
| " stderr (bool, optional): Use stderr rather than stdout if ``file`` is not specified. Defaults to False.\n", | |
| " file (IO, optional): A file object where the console should write to. Defaults to stdout.\n", | |
| " quiet (bool, Optional): Boolean to suppress all output. Defaults to False.\n", | |
| " width (int, optional): The width of the terminal. Leave as default to auto-detect width.\n", | |
| " height (int, optional): The height of the terminal. Leave as default to auto-detect height.\n", | |
| " style (StyleType, optional): Style to apply to all output, or None for no style. Defaults to None.\n", | |
| " no_color (Optional[bool], optional): Enabled no color mode, or None to auto detect. Defaults to None.\n", | |
| " tab_size (int, optional): Number of spaces used to replace a tab character. Defaults to 8.\n", | |
| " record (bool, optional): Boolean to enable recording of terminal output,\n", | |
| " required to call :meth:`export_html`, :meth:`export_svg`, and :meth:`export_text`. Defaults to False.\n", | |
| " markup (bool, optional): Boolean to enable :ref:`console_markup`. Defaults to True.\n", | |
| " emoji (bool, optional): Enable emoji code. Defaults to True.\n", | |
| " emoji_variant (str, optional): Optional emoji variant, either \"text\" or \"emoji\". Defaults to None.\n", | |
| " highlight (bool, optional): Enable automatic highlighting. Defaults to True.\n", | |
| " log_time (bool, optional): Boolean to enable logging of time by :meth:`log` methods. Defaults to True.\n", | |
| " log_path (bool, optional): Boolean to enable the logging of the caller by :meth:`log`. Defaults to True.\n", | |
| " log_time_format (Union[str, TimeFormatterCallable], optional): If ``log_time`` is enabled, either string for strftime or callable that formats the time. Defaults to \"[%X] \".\n", | |
| " highlighter (HighlighterType, optional): Default highlighter.\n", | |
| " legacy_windows (bool, optional): Enable legacy Windows mode, or ``None`` to auto detect. Defaults to ``None``.\n", | |
| " safe_box (bool, optional): Restrict box options that don't render on legacy Windows.\n", | |
| " get_datetime (Callable[[], datetime], optional): Callable that gets the current time as a datetime.datetime object (used by Console.log),\n", | |
| " or None for datetime.now.\n", | |
| " get_time (Callable[[], time], optional): Callable that gets the current time in seconds, default uses time.monotonic.\n", | |
| "\u001b[0;31mFile:\u001b[0m ~/print-code/.venv/lib/python3.10/site-packages/rich/console.py\n", | |
| "\u001b[0;31mType:\u001b[0m type\n", | |
| "\u001b[0;31mSubclasses:\u001b[0m " | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "?Console" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 10, | |
| "id": "d867a404-66f2-41c5-bce1-bb5085a2edea", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ | |
| "\u001b[0;31mInit signature:\u001b[0m\n", | |
| "\u001b[0mSyntax\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mcode\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mlexer\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mpygments\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlexer\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mLexer\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstr\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mtheme\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrich\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msyntax\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mSyntaxTheme\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'monokai'\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mdedent\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mline_numbers\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mstart_line\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mint\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mline_range\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mTuple\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mhighlight_lines\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mSet\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mcode_width\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mtab_size\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mint\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m4\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mword_wrap\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mbackground_color\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mOptional\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mindent_guides\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mbool\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m \u001b[0mpadding\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mUnion\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mTuple\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mTuple\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mTuple\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mint\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mint\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\n", | |
| "\u001b[0;34m\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
| "\u001b[0;31mDocstring:\u001b[0m \n", | |
| "Construct a Syntax object to render syntax highlighted code.\n", | |
| "\n", | |
| "Args:\n", | |
| " code (str): Code to highlight.\n", | |
| " lexer (Lexer | str): Lexer to use (see https://pygments.org/docs/lexers/)\n", | |
| " theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to \"monokai\".\n", | |
| " dedent (bool, optional): Enable stripping of initial whitespace. Defaults to False.\n", | |
| " line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.\n", | |
| " start_line (int, optional): Starting number for line numbers. Defaults to 1.\n", | |
| " line_range (Tuple[int | None, int | None], optional): If given should be a tuple of the start and end line to render.\n", | |
| " A value of None in the tuple indicates the range is open in that direction.\n", | |
| " highlight_lines (Set[int]): A set of line numbers to highlight.\n", | |
| " code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.\n", | |
| " tab_size (int, optional): Size of tabs. Defaults to 4.\n", | |
| " word_wrap (bool, optional): Enable word wrapping.\n", | |
| " background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.\n", | |
| " indent_guides (bool, optional): Show indent guides. Defaults to False.\n", | |
| " padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).\n", | |
| "\u001b[0;31mFile:\u001b[0m ~/print-code/.venv/lib/python3.10/site-packages/rich/syntax.py\n", | |
| "\u001b[0;31mType:\u001b[0m type\n", | |
| "\u001b[0;31mSubclasses:\u001b[0m " | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "?Syntax" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "987ac051-ac0f-4269-9ff6-c8a7dad343a5", | |
| "metadata": {}, | |
| "source": [ | |
| "Listing the available styles based on the docstring link: https://pygments.org/docs/styles/#getting-a-list-of-available-styles" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 11, | |
| "id": "75a86b1e-a74d-4b07-95a5-8c3443cb5be7", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [ | |
| "hide-output" | |
| ] | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/plain": [ | |
| "['abap',\n", | |
| " 'algol',\n", | |
| " 'algol_nu',\n", | |
| " 'arduino',\n", | |
| " 'autumn',\n", | |
| " 'bw',\n", | |
| " 'borland',\n", | |
| " 'colorful',\n", | |
| " 'default',\n", | |
| " 'dracula',\n", | |
| " 'emacs',\n", | |
| " 'friendly_grayscale',\n", | |
| " 'friendly',\n", | |
| " 'fruity',\n", | |
| " 'github-dark',\n", | |
| " 'gruvbox-dark',\n", | |
| " 'gruvbox-light',\n", | |
| " 'igor',\n", | |
| " 'inkpot',\n", | |
| " 'lightbulb',\n", | |
| " 'lilypond',\n", | |
| " 'lovelace',\n", | |
| " 'manni',\n", | |
| " 'material',\n", | |
| " 'monokai',\n", | |
| " 'murphy',\n", | |
| " 'native',\n", | |
| " 'nord-darker',\n", | |
| " 'nord',\n", | |
| " 'one-dark',\n", | |
| " 'paraiso-dark',\n", | |
| " 'paraiso-light',\n", | |
| " 'pastie',\n", | |
| " 'perldoc',\n", | |
| " 'rainbow_dash',\n", | |
| " 'rrt',\n", | |
| " 'sas',\n", | |
| " 'solarized-dark',\n", | |
| " 'solarized-light',\n", | |
| " 'staroffice',\n", | |
| " 'stata-dark',\n", | |
| " 'stata-light',\n", | |
| " 'tango',\n", | |
| " 'trac',\n", | |
| " 'vim',\n", | |
| " 'vs',\n", | |
| " 'xcode',\n", | |
| " 'zenburn']" | |
| ] | |
| }, | |
| "execution_count": 11, | |
| "metadata": {}, | |
| "output_type": "execute_result" | |
| } | |
| ], | |
| "source": [ | |
| "from pygments.styles import get_all_styles\n", | |
| "styles = list(get_all_styles())\n", | |
| "\n", | |
| "styles" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "7aa4f1bf-fb2e-4cae-9b58-d530658be502", | |
| "metadata": {}, | |
| "source": [ | |
| "And how they might look:" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": 12, | |
| "id": "facc9c10-dac4-4d89-b936-740553dcb4f1", | |
| "metadata": { | |
| "editable": true, | |
| "slideshow": { | |
| "slide_type": "" | |
| }, | |
| "tags": [] | |
| }, | |
| "outputs": [ | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: abap\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: abap\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #55aa22; text-decoration-color: #55aa22; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #33aaff; text-decoration-color: #33aaff; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;0;0;255;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;85;170;34;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;255;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;170;255;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: algol\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: algol\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; text-decoration: underline\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff; font-weight: bold; font-style: italic\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; text-decoration: underline\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * 2 > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;4;38;2;0;0;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;102;102;102;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;102;102;102;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;4;38;2;0;0;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: algol_nu\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: algol_nu\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff; font-weight: bold; font-style: italic\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * 2 > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;0;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;102;102;102;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;102;102;102;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: arduino\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: arduino\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #d35400; text-decoration-color: #d35400; background-color: #ffffff\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(</span><span style=\"color: #434f54; text-decoration-color: #434f54; background-color: #ffffff\">x</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">: </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, </span><span style=\"color: #434f54; text-decoration-color: #434f54; background-color: #ffffff\">y</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">: </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #7f8c8d; text-decoration-color: #7f8c8d; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #95a5a6; text-decoration-color: #95a5a6; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #434f54; text-decoration-color: #434f54; background-color: #ffffff\">x</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #8a7b52; text-decoration-color: #8a7b52; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #728e00; text-decoration-color: #728e00; background-color: #ffffff\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #434f54; text-decoration-color: #434f54; background-color: #ffffff\">y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;114;142;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;211;84;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;67;79;84;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;67;79;84;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;127;140;141;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;149;165;166;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;67;79;84;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;138;123;82;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;114;142;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;67;79;84;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: autumn\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: autumn\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #0000aa; text-decoration-color: #0000aa; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #00aa00; text-decoration-color: #00aa00; background-color: #ffffff\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #00aaaa; text-decoration-color: #00aaaa; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #00aaaa; text-decoration-color: #00aaaa; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #00aaaa; text-decoration-color: #00aaaa; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #aa5500; text-decoration-color: #aa5500; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #aaaaaa; text-decoration-color: #aaaaaa; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0000aa; text-decoration-color: #0000aa; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #009999; text-decoration-color: #009999; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;0;0;170;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;170;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;170;170;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;170;170;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;170;170;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;170;85;0;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;170;170;170;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;170;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;153;153;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: bw\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: bw\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * 2 > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;0;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;0;0;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;0;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: borland\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: borland\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;0;128;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;255;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;136;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;128;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;255;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: colorful\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: colorful\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0066bb; text-decoration-color: #0066bb; background-color: #ffffff; font-weight: bold\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #dd4422; text-decoration-color: #dd4422; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0000dd; text-decoration-color: #0000dd; background-color: #ffffff; font-weight: bold\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;136;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;102;187;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;112;32;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;112;32;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m-\u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;112;32;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;221;68;34;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;136;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;221;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: default\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: default\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000; background-color: #f8f8f8; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #f8f8f8\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">(x: </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">, y: </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">) </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #f8f8f8\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">:</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #f8f8f8\"> </span><span style=\"color: #ba2121; text-decoration-color: #ba2121; background-color: #f8f8f8; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #3d7b7b; text-decoration-color: #3d7b7b; background-color: #f8f8f8; font-style: italic\"># comment</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #f8f8f8; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> y</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;128;0;48;2;248;248;248mdef\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;255;48;2;248;248;248msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m(\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;128;0;48;2;248;248;248mint\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m,\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;128;0;48;2;248;248;248mint\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m)\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m-\u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;128;0;48;2;248;248;248mbool\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;248;248;248m \u001b[0m\u001b[3;38;2;186;33;33;48;2;248;248;248m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[3;38;2;61;123;123;48;2;248;248;248m# comment\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;0;128;0;48;2;248;248;248mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m*\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m2\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[48;2;248;248;248m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: dracula\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: dracula\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #ff79c6; text-decoration-color: #ff79c6; background-color: #282a36\">def</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #50fa7b; text-decoration-color: #50fa7b; background-color: #282a36\">simple_function</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\">(x: </span><span style=\"color: #8be9fd; text-decoration-color: #8be9fd; background-color: #282a36; font-style: italic\">int</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\">, y: </span><span style=\"color: #8be9fd; text-decoration-color: #8be9fd; background-color: #282a36; font-style: italic\">int</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\">) </span><span style=\"color: #ff79c6; text-decoration-color: #ff79c6; background-color: #282a36\">-></span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #8be9fd; text-decoration-color: #8be9fd; background-color: #282a36; font-style: italic\">bool</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\">:</span><span style=\"background-color: #282a36\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #bd93f9; text-decoration-color: #bd93f9; background-color: #282a36\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #282a36\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #6272a4; text-decoration-color: #6272a4; background-color: #282a36\"># comment</span><span style=\"background-color: #282a36\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #ff79c6; text-decoration-color: #ff79c6; background-color: #282a36\">return</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> x </span><span style=\"color: #ff79c6; text-decoration-color: #ff79c6; background-color: #282a36\">*</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #ffb86c; text-decoration-color: #ffb86c; background-color: #282a36\">2</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> </span><span style=\"color: #ff79c6; text-decoration-color: #ff79c6; background-color: #282a36\">></span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #282a36\"> y</span><span style=\"background-color: #282a36\"> </span>\n", | |
| "<span style=\"background-color: #282a36\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;255;121;198;48;2;40;42;54mdef\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;80;250;123;48;2;40;42;54msimple_function\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m(\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54mx\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m:\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[3;38;2;139;233;253;48;2;40;42;54mint\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m,\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54my\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m:\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[3;38;2;139;233;253;48;2;40;42;54mint\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m)\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;255;121;198;48;2;40;42;54m-\u001b[0m\u001b[38;2;255;121;198;48;2;40;42;54m>\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[3;38;2;139;233;253;48;2;40;42;54mbool\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m:\u001b[0m\u001b[48;2;40;42;54m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;189;147;249;48;2;40;42;54m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;40;42;54m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;98;114;164;48;2;40;42;54m# comment\u001b[0m\u001b[48;2;40;42;54m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;255;121;198;48;2;40;42;54mreturn\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54mx\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;255;121;198;48;2;40;42;54m*\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;255;184;108;48;2;40;42;54m2\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;255;121;198;48;2;40;42;54m>\u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54m \u001b[0m\u001b[38;2;248;248;242;48;2;40;42;54my\u001b[0m\u001b[48;2;40;42;54m \u001b[0m\n", | |
| "\u001b[48;2;40;42;54m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: emacs\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: emacs\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #aa22ff; text-decoration-color: #aa22ff; background-color: #f8f8f8; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #00a000; text-decoration-color: #00a000; background-color: #f8f8f8\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">(x: </span><span style=\"color: #aa22ff; text-decoration-color: #aa22ff; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">, y: </span><span style=\"color: #aa22ff; text-decoration-color: #aa22ff; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">) </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #aa22ff; text-decoration-color: #aa22ff; background-color: #f8f8f8\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">:</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #f8f8f8\"> </span><span style=\"color: #bb4444; text-decoration-color: #bb4444; background-color: #f8f8f8; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #f8f8f8; font-style: italic\"># comment</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #aa22ff; text-decoration-color: #aa22ff; background-color: #f8f8f8; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f8f8f8\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> y</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;170;34;255;48;2;248;248;248mdef\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;160;0;48;2;248;248;248msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m(\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;170;34;255;48;2;248;248;248mint\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m,\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;170;34;255;48;2;248;248;248mint\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m)\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m-\u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;170;34;255;48;2;248;248;248mbool\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;248;248;248m \u001b[0m\u001b[3;38;2;187;68;68;48;2;248;248;248m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[3;38;2;0;136;0;48;2;248;248;248m# comment\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;170;34;255;48;2;248;248;248mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m*\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m2\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;102;102;102;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[48;2;248;248;248m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: friendly_grayscale\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: friendly_grayscale\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #575757; text-decoration-color: #575757; background-color: #f0f0f0; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #3f3f3f; text-decoration-color: #3f3f3f; background-color: #f0f0f0\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">(x: </span><span style=\"color: #575757; text-decoration-color: #575757; background-color: #f0f0f0\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">, y: </span><span style=\"color: #575757; text-decoration-color: #575757; background-color: #f0f0f0\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">) </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #575757; text-decoration-color: #575757; background-color: #f0f0f0\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">:</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #f0f0f0\"> </span><span style=\"color: #717171; text-decoration-color: #717171; background-color: #f0f0f0; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #959595; text-decoration-color: #959595; background-color: #f0f0f0; font-style: italic\"># comment</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #575757; text-decoration-color: #575757; background-color: #f0f0f0; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #f0f0f0\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> y</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;87;87;87;48;2;240;240;240mdef\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;63;63;63;48;2;240;240;240msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m(\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;87;87;87;48;2;240;240;240mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m,\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240my\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;87;87;87;48;2;240;240;240mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m)\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m-\u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;87;87;87;48;2;240;240;240mbool\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;240;240;240m \u001b[0m\u001b[3;38;2;113;113;113;48;2;240;240;240m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[3;38;2;149;149;149;48;2;240;240;240m# comment\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[1;38;2;87;87;87;48;2;240;240;240mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m*\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;136;136;136;48;2;240;240;240m2\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240my\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[48;2;240;240;240m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: friendly\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: friendly\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #007020; text-decoration-color: #007020; background-color: #f0f0f0; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #06287e; text-decoration-color: #06287e; background-color: #f0f0f0\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">(x: </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #f0f0f0\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">, y: </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #f0f0f0\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">) </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #f0f0f0\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\">:</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #f0f0f0\"> </span><span style=\"color: #4070a0; text-decoration-color: #4070a0; background-color: #f0f0f0; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #60a0b0; text-decoration-color: #60a0b0; background-color: #f0f0f0; font-style: italic\"># comment</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #007020; text-decoration-color: #007020; background-color: #f0f0f0; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #40a070; text-decoration-color: #40a070; background-color: #f0f0f0\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #f0f0f0\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f0f0\"> y</span><span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "<span style=\"background-color: #f0f0f0\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;112;32;48;2;240;240;240mdef\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;6;40;126;48;2;240;240;240msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m(\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;112;32;48;2;240;240;240mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m,\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240my\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;112;32;48;2;240;240;240mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m)\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m-\u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;112;32;48;2;240;240;240mbool\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m:\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;240;240;240m \u001b[0m\u001b[3;38;2;64;112;160;48;2;240;240;240m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[3;38;2;96;160;176;48;2;240;240;240m# comment\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[1;38;2;0;112;32;48;2;240;240;240mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m*\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;64;160;112;48;2;240;240;240m2\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;102;102;102;48;2;240;240;240m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240m \u001b[0m\u001b[38;2;0;0;0;48;2;240;240;240my\u001b[0m\u001b[48;2;240;240;240m \u001b[0m\n", | |
| "\u001b[48;2;240;240;240m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: fruity\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: fruity\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #fb660a; text-decoration-color: #fb660a; background-color: #111111; font-weight: bold\">def</span><span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\"> </span><span style=\"color: #ff0086; text-decoration-color: #ff0086; background-color: #111111; font-weight: bold\">simple_function</span><span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\">(x: int, y: int) -> bool:</span><span style=\"background-color: #111111\"> </span>\n", | |
| "<span style=\"color: #888888; text-decoration-color: #888888; background-color: #111111\"> </span><span style=\"color: #0086d2; text-decoration-color: #0086d2; background-color: #111111\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #111111\"> </span>\n", | |
| "<span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #0f140f; font-style: italic\"># comment</span><span style=\"background-color: #111111\"> </span>\n", | |
| "<span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\"> </span><span style=\"color: #fb660a; text-decoration-color: #fb660a; background-color: #111111; font-weight: bold\">return</span><span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\"> x * </span><span style=\"color: #0086f7; text-decoration-color: #0086f7; background-color: #111111; font-weight: bold\">2</span><span style=\"color: #ffffff; text-decoration-color: #ffffff; background-color: #111111\"> > y</span><span style=\"background-color: #111111\"> </span>\n", | |
| "<span style=\"background-color: #111111\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;251;102;10;48;2;17;17;17mdef\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[1;38;2;255;0;134;48;2;17;17;17msimple_function\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m(\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17mx\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m:\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17mint\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m,\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17my\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m:\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17mint\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m)\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m-\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m>\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17mbool\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m:\u001b[0m\u001b[48;2;17;17;17m \u001b[0m\n", | |
| "\u001b[38;2;136;136;136;48;2;17;17;17m \u001b[0m\u001b[38;2;0;134;210;48;2;17;17;17m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;17;17;17m \u001b[0m\n", | |
| "\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[3;38;2;0;136;0;48;2;15;20;15m# comment\u001b[0m\u001b[48;2;17;17;17m \u001b[0m\n", | |
| "\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[1;38;2;251;102;10;48;2;17;17;17mreturn\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17mx\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m*\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[1;38;2;0;134;247;48;2;17;17;17m2\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m>\u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17m \u001b[0m\u001b[38;2;255;255;255;48;2;17;17;17my\u001b[0m\u001b[48;2;17;17;17m \u001b[0m\n", | |
| "\u001b[48;2;17;17;17m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: github-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: github-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117\">def</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> </span><span style=\"color: #d2a8ff; text-decoration-color: #d2a8ff; background-color: #0d1117; font-weight: bold\">simple_function</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\">(x: int, y: int) </span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117; font-weight: bold\">-></span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> bool:</span><span style=\"background-color: #0d1117\"> </span>\n", | |
| "<span style=\"color: #6e7681; text-decoration-color: #6e7681; background-color: #0d1117\"> </span><span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #0d1117\"> </span>\n", | |
| "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> </span><span style=\"color: #8b949e; text-decoration-color: #8b949e; background-color: #0d1117; font-style: italic\"># comment</span><span style=\"background-color: #0d1117\"> </span>\n", | |
| "<span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> </span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117\">return</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> x </span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117; font-weight: bold\">*</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> </span><span style=\"color: #a5d6ff; text-decoration-color: #a5d6ff; background-color: #0d1117\">2</span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> </span><span style=\"color: #ff7b72; text-decoration-color: #ff7b72; background-color: #0d1117; font-weight: bold\">></span><span style=\"color: #e6edf3; text-decoration-color: #e6edf3; background-color: #0d1117\"> y</span><span style=\"background-color: #0d1117\"> </span>\n", | |
| "<span style=\"background-color: #0d1117\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;255;123;114;48;2;13;17;23mdef\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[1;38;2;210;168;255;48;2;13;17;23msimple_function\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m(\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mx\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m:\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mint\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m,\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23my\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m:\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mint\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m)\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m-\u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m>\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mbool\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m:\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n", | |
| "\u001b[38;2;110;118;129;48;2;13;17;23m \u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n", | |
| "\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[3;38;2;139;148;158;48;2;13;17;23m# comment\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n", | |
| "\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;255;123;114;48;2;13;17;23mreturn\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23mx\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m*\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;165;214;255;48;2;13;17;23m2\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[1;38;2;255;123;114;48;2;13;17;23m>\u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23m \u001b[0m\u001b[38;2;230;237;243;48;2;13;17;23my\u001b[0m\u001b[48;2;13;17;23m \u001b[0m\n", | |
| "\u001b[48;2;13;17;23m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: gruvbox-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: gruvbox-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #fb4934; text-decoration-color: #fb4934; background-color: #282828\">def</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> </span><span style=\"color: #8ec07c; text-decoration-color: #8ec07c; background-color: #282828\">simple_function</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\">(x: </span><span style=\"color: #fe8019; text-decoration-color: #fe8019; background-color: #282828\">int</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\">, y: </span><span style=\"color: #fe8019; text-decoration-color: #fe8019; background-color: #282828\">int</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\">) -> </span><span style=\"color: #fe8019; text-decoration-color: #fe8019; background-color: #282828\">bool</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\">:</span><span style=\"background-color: #282828\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> </span><span style=\"color: #b8bb26; text-decoration-color: #b8bb26; background-color: #282828\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #282828\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> </span><span style=\"color: #928374; text-decoration-color: #928374; background-color: #282828; font-style: italic\"># comment</span><span style=\"background-color: #282828\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> </span><span style=\"color: #fb4934; text-decoration-color: #fb4934; background-color: #282828\">return</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> x * </span><span style=\"color: #d3869b; text-decoration-color: #d3869b; background-color: #282828\">2</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #282828\"> > y</span><span style=\"background-color: #282828\"> </span>\n", | |
| "<span style=\"background-color: #282828\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;251;73;52;48;2;40;40;40mdef\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;142;192;124;48;2;40;40;40msimple_function\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m(\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40mx\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m:\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;254;128;25;48;2;40;40;40mint\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m,\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40my\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m:\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;254;128;25;48;2;40;40;40mint\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m)\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m-\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m>\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;254;128;25;48;2;40;40;40mbool\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m:\u001b[0m\u001b[48;2;40;40;40m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;184;187;38;48;2;40;40;40m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;40;40;40m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[3;38;2;146;131;116;48;2;40;40;40m# comment\u001b[0m\u001b[48;2;40;40;40m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;251;73;52;48;2;40;40;40mreturn\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40mx\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m*\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;211;134;155;48;2;40;40;40m2\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m>\u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40m \u001b[0m\u001b[38;2;221;221;221;48;2;40;40;40my\u001b[0m\u001b[48;2;40;40;40m \u001b[0m\n", | |
| "\u001b[48;2;40;40;40m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: gruvbox-light\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: gruvbox-light\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #9d0006; text-decoration-color: #9d0006; background-color: #fbf1c7\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> </span><span style=\"color: #427b58; text-decoration-color: #427b58; background-color: #fbf1c7\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\">(x: </span><span style=\"color: #af3a03; text-decoration-color: #af3a03; background-color: #fbf1c7\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\">, y: </span><span style=\"color: #af3a03; text-decoration-color: #af3a03; background-color: #fbf1c7\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\">) -> </span><span style=\"color: #af3a03; text-decoration-color: #af3a03; background-color: #fbf1c7\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\">:</span><span style=\"background-color: #fbf1c7\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> </span><span style=\"color: #79740e; text-decoration-color: #79740e; background-color: #fbf1c7\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #fbf1c7\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> </span><span style=\"color: #928374; text-decoration-color: #928374; background-color: #fbf1c7; font-style: italic\"># comment</span><span style=\"background-color: #fbf1c7\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> </span><span style=\"color: #9d0006; text-decoration-color: #9d0006; background-color: #fbf1c7\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> x * </span><span style=\"color: #8f3f71; text-decoration-color: #8f3f71; background-color: #fbf1c7\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #fbf1c7\"> > y</span><span style=\"background-color: #fbf1c7\"> </span>\n", | |
| "<span style=\"background-color: #fbf1c7\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;157;0;6;48;2;251;241;199mdef\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;66;123;88;48;2;251;241;199msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m(\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199mx\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m:\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;175;58;3;48;2;251;241;199mint\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m,\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199my\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m:\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;175;58;3;48;2;251;241;199mint\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m)\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m-\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m>\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;175;58;3;48;2;251;241;199mbool\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m:\u001b[0m\u001b[48;2;251;241;199m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;121;116;14;48;2;251;241;199m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;251;241;199m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[3;38;2;146;131;116;48;2;251;241;199m# comment\u001b[0m\u001b[48;2;251;241;199m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;157;0;6;48;2;251;241;199mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199mx\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m*\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;143;63;113;48;2;251;241;199m2\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m>\u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199m \u001b[0m\u001b[38;2;0;0;0;48;2;251;241;199my\u001b[0m\u001b[48;2;251;241;199m \u001b[0m\n", | |
| "\u001b[48;2;251;241;199m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: igor\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: igor\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #c34e00; text-decoration-color: #c34e00; background-color: #ffffff\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #009c00; text-decoration-color: #009c00; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #ff0000; text-decoration-color: #ff0000; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * 2 > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;0;0;255;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;195;78;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;156;0;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;255;0;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;255;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: inkpot\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: inkpot\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #1e1e27\">def</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #c080d0; text-decoration-color: #c080d0; background-color: #1e1e27\">simple_function</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\">(x: </span><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #1e1e27\">int</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\">, y: </span><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #1e1e27\">int</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\">) </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #1e1e27\">-></span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #1e1e27\">bool</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\">:</span><span style=\"background-color: #1e1e27\"> </span>\n", | |
| "<span style=\"color: #434357; text-decoration-color: #434357; background-color: #1e1e27\"> </span><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #404040\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #1e1e27\"> </span>\n", | |
| "<span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #cd8b00; text-decoration-color: #cd8b00; background-color: #1e1e27\"># comment</span><span style=\"background-color: #1e1e27\"> </span>\n", | |
| "<span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #808bed; text-decoration-color: #808bed; background-color: #1e1e27\">return</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #1e1e27\">*</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #f0ad6d; text-decoration-color: #f0ad6d; background-color: #1e1e27\">2</span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #1e1e27\">></span><span style=\"color: #cfbfad; text-decoration-color: #cfbfad; background-color: #1e1e27\"> y</span><span style=\"background-color: #1e1e27\"> </span>\n", | |
| "<span style=\"background-color: #1e1e27\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;128;139;237;48;2;30;30;39mdef\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;192;128;208;48;2;30;30;39msimple_function\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m(\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39mx\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m:\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;128;139;237;48;2;30;30;39mint\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m,\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39my\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m:\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;128;139;237;48;2;30;30;39mint\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m)\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;102;102;102;48;2;30;30;39m-\u001b[0m\u001b[38;2;102;102;102;48;2;30;30;39m>\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;128;139;237;48;2;30;30;39mbool\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m:\u001b[0m\u001b[48;2;30;30;39m \u001b[0m\n", | |
| "\u001b[38;2;67;67;87;48;2;30;30;39m \u001b[0m\u001b[38;2;128;139;237;48;2;64;64;64m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;30;30;39m \u001b[0m\n", | |
| "\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;205;139;0;48;2;30;30;39m# comment\u001b[0m\u001b[48;2;30;30;39m \u001b[0m\n", | |
| "\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;128;139;237;48;2;30;30;39mreturn\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39mx\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;102;102;102;48;2;30;30;39m*\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;240;173;109;48;2;30;30;39m2\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;102;102;102;48;2;30;30;39m>\u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39m \u001b[0m\u001b[38;2;207;191;173;48;2;30;30;39my\u001b[0m\u001b[48;2;30;30;39m \u001b[0m\n", | |
| "\u001b[48;2;30;30;39m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: lightbulb\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: lightbulb\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #ffad66; text-decoration-color: #ffad66; background-color: #1d2331\">def</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #ffd173; text-decoration-color: #ffd173; background-color: #1d2331\">simple_function</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\">(x: </span><span style=\"color: #ffd173; text-decoration-color: #ffd173; background-color: #1d2331\">int</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\">, y: </span><span style=\"color: #ffd173; text-decoration-color: #ffd173; background-color: #1d2331\">int</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\">) </span><span style=\"color: #ffad66; text-decoration-color: #ffad66; background-color: #1d2331\">-></span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #ffd173; text-decoration-color: #ffd173; background-color: #1d2331\">bool</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\">:</span><span style=\"background-color: #1d2331\"> </span>\n", | |
| "<span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #7e8aa1; text-decoration-color: #7e8aa1; background-color: #1d2331\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #1d2331\"> </span>\n", | |
| "<span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #7e8aa1; text-decoration-color: #7e8aa1; background-color: #1d2331\"># comment</span><span style=\"background-color: #1d2331\"> </span>\n", | |
| "<span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #ffad66; text-decoration-color: #ffad66; background-color: #1d2331\">return</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> x </span><span style=\"color: #ffad66; text-decoration-color: #ffad66; background-color: #1d2331\">*</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #dfbfff; text-decoration-color: #dfbfff; background-color: #1d2331\">2</span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> </span><span style=\"color: #ffad66; text-decoration-color: #ffad66; background-color: #1d2331\">></span><span style=\"color: #d4d2c8; text-decoration-color: #d4d2c8; background-color: #1d2331\"> y</span><span style=\"background-color: #1d2331\"> </span>\n", | |
| "<span style=\"background-color: #1d2331\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;255;173;102;48;2;29;35;49mdef\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;209;115;48;2;29;35;49msimple_function\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m(\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49mx\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m:\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;209;115;48;2;29;35;49mint\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m,\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49my\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m:\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;209;115;48;2;29;35;49mint\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m)\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;173;102;48;2;29;35;49m-\u001b[0m\u001b[38;2;255;173;102;48;2;29;35;49m>\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;209;115;48;2;29;35;49mbool\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m:\u001b[0m\u001b[48;2;29;35;49m \u001b[0m\n", | |
| "\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;126;138;161;48;2;29;35;49m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;29;35;49m \u001b[0m\n", | |
| "\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;126;138;161;48;2;29;35;49m# comment\u001b[0m\u001b[48;2;29;35;49m \u001b[0m\n", | |
| "\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;173;102;48;2;29;35;49mreturn\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49mx\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;173;102;48;2;29;35;49m*\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;223;191;255;48;2;29;35;49m2\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;255;173;102;48;2;29;35;49m>\u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49m \u001b[0m\u001b[38;2;212;210;200;48;2;29;35;49my\u001b[0m\u001b[48;2;29;35;49m \u001b[0m\n", | |
| "\u001b[48;2;29;35;49m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: lilypond\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: lilypond\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #ab0909; text-decoration-color: #ab0909; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #a3aab2; text-decoration-color: #a3aab2; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #976806; text-decoration-color: #976806; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;0;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;171;9;9;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;163;170;178;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;151;104;6;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: lovelace\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: lovelace\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #2838b0; text-decoration-color: #2838b0; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #785840; text-decoration-color: #785840; background-color: #ffffff\">simple_function</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">(</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">x</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">:</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #388038; text-decoration-color: #388038; background-color: #ffffff\">int</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">,</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> y</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">:</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #388038; text-decoration-color: #388038; background-color: #ffffff\">int</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">)</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #388038; text-decoration-color: #388038; background-color: #ffffff\">bool</span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #a89028; text-decoration-color: #a89028; background-color: #ffffff\"> </span><span style=\"color: #b85820; text-decoration-color: #b85820; background-color: #ffffff; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #2838b0; text-decoration-color: #2838b0; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #444444; text-decoration-color: #444444; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;40;56;176;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;120;88;64;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;56;128;56;48;2;255;255;255mint\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;56;128;56;48;2;255;255;255mint\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;102;102;102;48;2;255;255;255m-\u001b[0m\u001b[38;2;102;102;102;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;56;128;56;48;2;255;255;255mbool\u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;168;144;40;48;2;255;255;255m \u001b[0m\u001b[3;38;2;184;88;32;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;40;56;176;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;102;102;102;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;68;68;68;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;102;102;102;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: manni\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: manni\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #006699; text-decoration-color: #006699; background-color: #f0f3f3; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #cc00ff; text-decoration-color: #cc00ff; background-color: #f0f3f3\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\">(x: </span><span style=\"color: #336666; text-decoration-color: #336666; background-color: #f0f3f3\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\">, y: </span><span style=\"color: #336666; text-decoration-color: #336666; background-color: #f0f3f3\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\">) </span><span style=\"color: #555555; text-decoration-color: #555555; background-color: #f0f3f3\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #336666; text-decoration-color: #336666; background-color: #f0f3f3\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\">:</span><span style=\"background-color: #f0f3f3\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #f0f3f3\"> </span><span style=\"color: #cc3300; text-decoration-color: #cc3300; background-color: #f0f3f3; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f0f3f3\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #0099ff; text-decoration-color: #0099ff; background-color: #f0f3f3; font-style: italic\"># comment</span><span style=\"background-color: #f0f3f3\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #006699; text-decoration-color: #006699; background-color: #f0f3f3; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> x </span><span style=\"color: #555555; text-decoration-color: #555555; background-color: #f0f3f3\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #ff6600; text-decoration-color: #ff6600; background-color: #f0f3f3\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> </span><span style=\"color: #555555; text-decoration-color: #555555; background-color: #f0f3f3\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f0f3f3\"> y</span><span style=\"background-color: #f0f3f3\"> </span>\n", | |
| "<span style=\"background-color: #f0f3f3\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;102;153;48;2;240;243;243mdef\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;204;0;255;48;2;240;243;243msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m(\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;51;102;102;48;2;240;243;243mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m,\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243my\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m:\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;51;102;102;48;2;240;243;243mint\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m)\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;85;85;85;48;2;240;243;243m-\u001b[0m\u001b[38;2;85;85;85;48;2;240;243;243m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;51;102;102;48;2;240;243;243mbool\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m:\u001b[0m\u001b[48;2;240;243;243m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;240;243;243m \u001b[0m\u001b[3;38;2;204;51;0;48;2;240;243;243m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;240;243;243m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[3;38;2;0;153;255;48;2;240;243;243m# comment\u001b[0m\u001b[48;2;240;243;243m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[1;38;2;0;102;153;48;2;240;243;243mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243mx\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;85;85;85;48;2;240;243;243m*\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;255;102;0;48;2;240;243;243m2\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;85;85;85;48;2;240;243;243m>\u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243m \u001b[0m\u001b[38;2;0;0;0;48;2;240;243;243my\u001b[0m\u001b[48;2;240;243;243m \u001b[0m\n", | |
| "\u001b[48;2;240;243;243m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: material\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: material\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #bb80b3; text-decoration-color: #bb80b3; background-color: #263238\">def</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #82aaff; text-decoration-color: #82aaff; background-color: #263238\">simple_function</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">(</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\">x</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">:</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #82aaff; text-decoration-color: #82aaff; background-color: #263238\">int</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">,</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> y</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">:</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #82aaff; text-decoration-color: #82aaff; background-color: #263238\">int</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">)</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">-></span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #82aaff; text-decoration-color: #82aaff; background-color: #263238\">bool</span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">:</span><span style=\"background-color: #263238\"> </span>\n", | |
| "<span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #546e7a; text-decoration-color: #546e7a; background-color: #263238; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #263238\"> </span>\n", | |
| "<span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #546e7a; text-decoration-color: #546e7a; background-color: #263238; font-style: italic\"># comment</span><span style=\"background-color: #263238\"> </span>\n", | |
| "<span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #bb80b3; text-decoration-color: #bb80b3; background-color: #263238\">return</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> x </span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">*</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #f78c6c; text-decoration-color: #f78c6c; background-color: #263238\">2</span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> </span><span style=\"color: #89ddff; text-decoration-color: #89ddff; background-color: #263238\">></span><span style=\"color: #eeffff; text-decoration-color: #eeffff; background-color: #263238\"> y</span><span style=\"background-color: #263238\"> </span>\n", | |
| "<span style=\"background-color: #263238\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;187;128;179;48;2;38;50;56mdef\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;130;170;255;48;2;38;50;56msimple_function\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m(\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56mx\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m:\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;130;170;255;48;2;38;50;56mint\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m,\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56my\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m:\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;130;170;255;48;2;38;50;56mint\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m)\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m-\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m>\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;130;170;255;48;2;38;50;56mbool\u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m:\u001b[0m\u001b[48;2;38;50;56m \u001b[0m\n", | |
| "\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[3;38;2;84;110;122;48;2;38;50;56m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;38;50;56m \u001b[0m\n", | |
| "\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[3;38;2;84;110;122;48;2;38;50;56m# comment\u001b[0m\u001b[48;2;38;50;56m \u001b[0m\n", | |
| "\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;187;128;179;48;2;38;50;56mreturn\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56mx\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m*\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;247;140;108;48;2;38;50;56m2\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;137;221;255;48;2;38;50;56m>\u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56m \u001b[0m\u001b[38;2;238;255;255;48;2;38;50;56my\u001b[0m\u001b[48;2;38;50;56m \u001b[0m\n", | |
| "\u001b[48;2;38;50;56m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: monokai\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: monokai\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">def</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #a6e22e; text-decoration-color: #a6e22e; background-color: #272822\">simple_function</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\">(x: int, y: int) </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">-></span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> bool:</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #e6db74; text-decoration-color: #e6db74; background-color: #272822\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #959077; text-decoration-color: #959077; background-color: #272822\"># comment</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #66d9ef; text-decoration-color: #66d9ef; background-color: #272822\">return</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> x </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">*</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ae81ff; text-decoration-color: #ae81ff; background-color: #272822\">2</span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> </span><span style=\"color: #ff4689; text-decoration-color: #ff4689; background-color: #272822\">></span><span style=\"color: #f8f8f2; text-decoration-color: #f8f8f2; background-color: #272822\"> y</span><span style=\"background-color: #272822\"> </span>\n", | |
| "<span style=\"background-color: #272822\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;102;217;239;48;2;39;40;34mdef\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;166;226;46;48;2;39;40;34msimple_function\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m(\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mx\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m,\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34my\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mint\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m)\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m-\u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m>\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mbool\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m:\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;230;219;116;48;2;39;40;34m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;149;144;119;48;2;39;40;34m# comment\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;102;217;239;48;2;39;40;34mreturn\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34mx\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m*\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;174;129;255;48;2;39;40;34m2\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;255;70;137;48;2;39;40;34m>\u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34m \u001b[0m\u001b[38;2;248;248;242;48;2;39;40;34my\u001b[0m\u001b[48;2;39;40;34m \u001b[0m\n", | |
| "\u001b[48;2;39;40;34m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: murphy\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: murphy\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #228899; text-decoration-color: #228899; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #55eedd; text-decoration-color: #55eedd; background-color: #ffffff; font-weight: bold\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #007722; text-decoration-color: #007722; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #007722; text-decoration-color: #007722; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #007722; text-decoration-color: #007722; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #dd4422; text-decoration-color: #dd4422; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #666666; text-decoration-color: #666666; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #228899; text-decoration-color: #228899; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #6666ff; text-decoration-color: #6666ff; background-color: #ffffff; font-weight: bold\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #333333; text-decoration-color: #333333; background-color: #ffffff\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;34;136;153;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;85;238;221;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;119;34;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;119;34;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m-\u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;119;34;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;221;68;34;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;102;102;102;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;34;136;153;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;102;102;255;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;51;51;51;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: native\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: native\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #6ebf26; text-decoration-color: #6ebf26; background-color: #202020; font-weight: bold\">def</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\"> </span><span style=\"color: #71adff; text-decoration-color: #71adff; background-color: #202020\">simple_function</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\">(x: </span><span style=\"color: #2fbccd; text-decoration-color: #2fbccd; background-color: #202020\">int</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\">, y: </span><span style=\"color: #2fbccd; text-decoration-color: #2fbccd; background-color: #202020\">int</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\">) -> </span><span style=\"color: #2fbccd; text-decoration-color: #2fbccd; background-color: #202020\">bool</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\">:</span><span style=\"background-color: #202020\"> </span>\n", | |
| "<span style=\"color: #666666; text-decoration-color: #666666; background-color: #202020\"> </span><span style=\"color: #ed9d13; text-decoration-color: #ed9d13; background-color: #202020\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #202020\"> </span>\n", | |
| "<span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\"> </span><span style=\"color: #ababab; text-decoration-color: #ababab; background-color: #202020; font-style: italic\"># comment</span><span style=\"background-color: #202020\"> </span>\n", | |
| "<span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\"> </span><span style=\"color: #6ebf26; text-decoration-color: #6ebf26; background-color: #202020; font-weight: bold\">return</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\"> x * </span><span style=\"color: #51b2fd; text-decoration-color: #51b2fd; background-color: #202020\">2</span><span style=\"color: #d0d0d0; text-decoration-color: #d0d0d0; background-color: #202020\"> > y</span><span style=\"background-color: #202020\"> </span>\n", | |
| "<span style=\"background-color: #202020\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;110;191;38;48;2;32;32;32mdef\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;113;173;255;48;2;32;32;32msimple_function\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m(\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32mx\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m:\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;47;188;205;48;2;32;32;32mint\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m,\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32my\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m:\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;47;188;205;48;2;32;32;32mint\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m)\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m-\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m>\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;47;188;205;48;2;32;32;32mbool\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m:\u001b[0m\u001b[48;2;32;32;32m \u001b[0m\n", | |
| "\u001b[38;2;102;102;102;48;2;32;32;32m \u001b[0m\u001b[38;2;237;157;19;48;2;32;32;32m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;32;32;32m \u001b[0m\n", | |
| "\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[3;38;2;171;171;171;48;2;32;32;32m# comment\u001b[0m\u001b[48;2;32;32;32m \u001b[0m\n", | |
| "\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[1;38;2;110;191;38;48;2;32;32;32mreturn\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32mx\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m*\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;81;178;253;48;2;32;32;32m2\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m>\u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32m \u001b[0m\u001b[38;2;208;208;208;48;2;32;32;32my\u001b[0m\u001b[48;2;32;32;32m \u001b[0m\n", | |
| "\u001b[48;2;32;32;32m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: nord-darker\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: nord-darker\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933; font-weight: bold\">def</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #88c0d0; text-decoration-color: #88c0d0; background-color: #242933\">simple_function</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">(</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\">x</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">:</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933\">int</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">,</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> y</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">:</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933\">int</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">)</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933; font-weight: bold\">-></span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933\">bool</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #242933\">:</span><span style=\"background-color: #242933\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #616e87; text-decoration-color: #616e87; background-color: #242933\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #242933\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #616e87; text-decoration-color: #616e87; background-color: #242933; font-style: italic\"># comment</span><span style=\"background-color: #242933\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933; font-weight: bold\">return</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> x </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933; font-weight: bold\">*</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #b48ead; text-decoration-color: #b48ead; background-color: #242933\">2</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #242933; font-weight: bold\">></span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #242933\"> y</span><span style=\"background-color: #242933\"> </span>\n", | |
| "<span style=\"background-color: #242933\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;129;161;193;48;2;36;41;51mdef\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;136;192;208;48;2;36;41;51msimple_function\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m(\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51mx\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m:\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;129;161;193;48;2;36;41;51mint\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m,\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51my\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m:\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;129;161;193;48;2;36;41;51mint\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m)\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[1;38;2;129;161;193;48;2;36;41;51m-\u001b[0m\u001b[1;38;2;129;161;193;48;2;36;41;51m>\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;129;161;193;48;2;36;41;51mbool\u001b[0m\u001b[38;2;236;239;244;48;2;36;41;51m:\u001b[0m\u001b[48;2;36;41;51m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;97;110;135;48;2;36;41;51m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;36;41;51m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[3;38;2;97;110;135;48;2;36;41;51m# comment\u001b[0m\u001b[48;2;36;41;51m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[1;38;2;129;161;193;48;2;36;41;51mreturn\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51mx\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[1;38;2;129;161;193;48;2;36;41;51m*\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;180;142;173;48;2;36;41;51m2\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[1;38;2;129;161;193;48;2;36;41;51m>\u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51m \u001b[0m\u001b[38;2;216;222;233;48;2;36;41;51my\u001b[0m\u001b[48;2;36;41;51m \u001b[0m\n", | |
| "\u001b[48;2;36;41;51m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: nord\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: nord\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440; font-weight: bold\">def</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #88c0d0; text-decoration-color: #88c0d0; background-color: #2e3440\">simple_function</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">(</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\">x</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">:</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440\">int</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">,</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> y</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">:</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440\">int</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">)</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440; font-weight: bold\">-></span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440\">bool</span><span style=\"color: #eceff4; text-decoration-color: #eceff4; background-color: #2e3440\">:</span><span style=\"background-color: #2e3440\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #616e87; text-decoration-color: #616e87; background-color: #2e3440\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #2e3440\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #616e87; text-decoration-color: #616e87; background-color: #2e3440; font-style: italic\"># comment</span><span style=\"background-color: #2e3440\"> </span>\n", | |
| "<span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440; font-weight: bold\">return</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> x </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440; font-weight: bold\">*</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #b48ead; text-decoration-color: #b48ead; background-color: #2e3440\">2</span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> </span><span style=\"color: #81a1c1; text-decoration-color: #81a1c1; background-color: #2e3440; font-weight: bold\">></span><span style=\"color: #d8dee9; text-decoration-color: #d8dee9; background-color: #2e3440\"> y</span><span style=\"background-color: #2e3440\"> </span>\n", | |
| "<span style=\"background-color: #2e3440\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;129;161;193;48;2;46;52;64mdef\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;136;192;208;48;2;46;52;64msimple_function\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m(\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64mx\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m:\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;129;161;193;48;2;46;52;64mint\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m,\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64my\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m:\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;129;161;193;48;2;46;52;64mint\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m)\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[1;38;2;129;161;193;48;2;46;52;64m-\u001b[0m\u001b[1;38;2;129;161;193;48;2;46;52;64m>\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;129;161;193;48;2;46;52;64mbool\u001b[0m\u001b[38;2;236;239;244;48;2;46;52;64m:\u001b[0m\u001b[48;2;46;52;64m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;97;110;135;48;2;46;52;64m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;46;52;64m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[3;38;2;97;110;135;48;2;46;52;64m# comment\u001b[0m\u001b[48;2;46;52;64m \u001b[0m\n", | |
| "\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[1;38;2;129;161;193;48;2;46;52;64mreturn\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64mx\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[1;38;2;129;161;193;48;2;46;52;64m*\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;180;142;173;48;2;46;52;64m2\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[1;38;2;129;161;193;48;2;46;52;64m>\u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64m \u001b[0m\u001b[38;2;216;222;233;48;2;46;52;64my\u001b[0m\u001b[48;2;46;52;64m \u001b[0m\n", | |
| "\u001b[48;2;46;52;64m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: one-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: one-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #c678dd; text-decoration-color: #c678dd; background-color: #282c34\">def</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #61afef; text-decoration-color: #61afef; background-color: #282c34; font-weight: bold\">simple_function</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">(</span><span style=\"color: #e06c75; text-decoration-color: #e06c75; background-color: #282c34\">x</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">: </span><span style=\"color: #e5c07b; text-decoration-color: #e5c07b; background-color: #282c34\">int</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">, </span><span style=\"color: #e06c75; text-decoration-color: #e06c75; background-color: #282c34\">y</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">: </span><span style=\"color: #e5c07b; text-decoration-color: #e5c07b; background-color: #282c34\">int</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">) </span><span style=\"color: #56b6c2; text-decoration-color: #56b6c2; background-color: #282c34\">-></span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #e5c07b; text-decoration-color: #e5c07b; background-color: #282c34\">bool</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\">:</span><span style=\"background-color: #282c34\"> </span>\n", | |
| "<span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #98c379; text-decoration-color: #98c379; background-color: #282c34\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #282c34\"> </span>\n", | |
| "<span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #7f848e; text-decoration-color: #7f848e; background-color: #282c34\"># comment</span><span style=\"background-color: #282c34\"> </span>\n", | |
| "<span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #c678dd; text-decoration-color: #c678dd; background-color: #282c34\">return</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #e06c75; text-decoration-color: #e06c75; background-color: #282c34\">x</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #56b6c2; text-decoration-color: #56b6c2; background-color: #282c34\">*</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #d19a66; text-decoration-color: #d19a66; background-color: #282c34\">2</span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #56b6c2; text-decoration-color: #56b6c2; background-color: #282c34\">></span><span style=\"color: #abb2bf; text-decoration-color: #abb2bf; background-color: #282c34\"> </span><span style=\"color: #e06c75; text-decoration-color: #e06c75; background-color: #282c34\">y</span><span style=\"background-color: #282c34\"> </span>\n", | |
| "<span style=\"background-color: #282c34\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;198;120;221;48;2;40;44;52mdef\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[1;38;2;97;175;239;48;2;40;44;52msimple_function\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m(\u001b[0m\u001b[38;2;224;108;117;48;2;40;44;52mx\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m:\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;229;192;123;48;2;40;44;52mint\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m,\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;224;108;117;48;2;40;44;52my\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m:\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;229;192;123;48;2;40;44;52mint\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m)\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;86;182;194;48;2;40;44;52m-\u001b[0m\u001b[38;2;86;182;194;48;2;40;44;52m>\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;229;192;123;48;2;40;44;52mbool\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m:\u001b[0m\u001b[48;2;40;44;52m \u001b[0m\n", | |
| "\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;152;195;121;48;2;40;44;52m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;40;44;52m \u001b[0m\n", | |
| "\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;127;132;142;48;2;40;44;52m# comment\u001b[0m\u001b[48;2;40;44;52m \u001b[0m\n", | |
| "\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;198;120;221;48;2;40;44;52mreturn\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;224;108;117;48;2;40;44;52mx\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;86;182;194;48;2;40;44;52m*\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;209;154;102;48;2;40;44;52m2\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;86;182;194;48;2;40;44;52m>\u001b[0m\u001b[38;2;171;178;191;48;2;40;44;52m \u001b[0m\u001b[38;2;224;108;117;48;2;40;44;52my\u001b[0m\u001b[48;2;40;44;52m \u001b[0m\n", | |
| "\u001b[48;2;40;44;52m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: paraiso-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: paraiso-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #815ba4; text-decoration-color: #815ba4; background-color: #2f1e2e\">def</span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #06b6ef; text-decoration-color: #06b6ef; background-color: #2f1e2e\">simple_function</span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\">(x: int, y: int) </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #2f1e2e\">-></span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> bool:</span><span style=\"background-color: #2f1e2e\"> </span>\n", | |
| "<span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #776e71; text-decoration-color: #776e71; background-color: #2f1e2e\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #2f1e2e\"> </span>\n", | |
| "<span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #776e71; text-decoration-color: #776e71; background-color: #2f1e2e\"># comment</span><span style=\"background-color: #2f1e2e\"> </span>\n", | |
| "<span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #815ba4; text-decoration-color: #815ba4; background-color: #2f1e2e\">return</span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> x </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #2f1e2e\">*</span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #f99b15; text-decoration-color: #f99b15; background-color: #2f1e2e\">2</span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #2f1e2e\">></span><span style=\"color: #e7e9db; text-decoration-color: #e7e9db; background-color: #2f1e2e\"> y</span><span style=\"background-color: #2f1e2e\"> </span>\n", | |
| "<span style=\"background-color: #2f1e2e\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;129;91;164;48;2;47;30;46mdef\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;6;182;239;48;2;47;30;46msimple_function\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m(\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46mx\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m:\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46mint\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m,\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46my\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m:\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46mint\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m)\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;91;196;191;48;2;47;30;46m-\u001b[0m\u001b[38;2;91;196;191;48;2;47;30;46m>\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46mbool\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m:\u001b[0m\u001b[48;2;47;30;46m \u001b[0m\n", | |
| "\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;119;110;113;48;2;47;30;46m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;47;30;46m \u001b[0m\n", | |
| "\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;119;110;113;48;2;47;30;46m# comment\u001b[0m\u001b[48;2;47;30;46m \u001b[0m\n", | |
| "\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;129;91;164;48;2;47;30;46mreturn\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46mx\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;91;196;191;48;2;47;30;46m*\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;249;155;21;48;2;47;30;46m2\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;91;196;191;48;2;47;30;46m>\u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46m \u001b[0m\u001b[38;2;231;233;219;48;2;47;30;46my\u001b[0m\u001b[48;2;47;30;46m \u001b[0m\n", | |
| "\u001b[48;2;47;30;46m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: paraiso-light\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: paraiso-light\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #815ba4; text-decoration-color: #815ba4; background-color: #e7e9db\">def</span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #06b6ef; text-decoration-color: #06b6ef; background-color: #e7e9db\">simple_function</span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\">(x: int, y: int) </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #e7e9db\">-></span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> bool:</span><span style=\"background-color: #e7e9db\"> </span>\n", | |
| "<span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #8d8687; text-decoration-color: #8d8687; background-color: #e7e9db\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #e7e9db\"> </span>\n", | |
| "<span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #8d8687; text-decoration-color: #8d8687; background-color: #e7e9db\"># comment</span><span style=\"background-color: #e7e9db\"> </span>\n", | |
| "<span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #815ba4; text-decoration-color: #815ba4; background-color: #e7e9db\">return</span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> x </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #e7e9db\">*</span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #f99b15; text-decoration-color: #f99b15; background-color: #e7e9db\">2</span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> </span><span style=\"color: #5bc4bf; text-decoration-color: #5bc4bf; background-color: #e7e9db\">></span><span style=\"color: #2f1e2e; text-decoration-color: #2f1e2e; background-color: #e7e9db\"> y</span><span style=\"background-color: #e7e9db\"> </span>\n", | |
| "<span style=\"background-color: #e7e9db\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;129;91;164;48;2;231;233;219mdef\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;6;182;239;48;2;231;233;219msimple_function\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m(\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219mx\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m:\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219mint\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m,\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219my\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m:\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219mint\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m)\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;91;196;191;48;2;231;233;219m-\u001b[0m\u001b[38;2;91;196;191;48;2;231;233;219m>\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219mbool\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m:\u001b[0m\u001b[48;2;231;233;219m \u001b[0m\n", | |
| "\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;141;134;135;48;2;231;233;219m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;231;233;219m \u001b[0m\n", | |
| "\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;141;134;135;48;2;231;233;219m# comment\u001b[0m\u001b[48;2;231;233;219m \u001b[0m\n", | |
| "\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;129;91;164;48;2;231;233;219mreturn\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219mx\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;91;196;191;48;2;231;233;219m*\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;249;155;21;48;2;231;233;219m2\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;91;196;191;48;2;231;233;219m>\u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219m \u001b[0m\u001b[38;2;47;30;46;48;2;231;233;219my\u001b[0m\u001b[48;2;231;233;219m \u001b[0m\n", | |
| "\u001b[48;2;231;233;219m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: pastie\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: pastie\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0066bb; text-decoration-color: #0066bb; background-color: #ffffff; font-weight: bold\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #003388; text-decoration-color: #003388; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #003388; text-decoration-color: #003388; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #003388; text-decoration-color: #003388; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #dd2200; text-decoration-color: #dd2200; background-color: #fff0f0\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #888888; text-decoration-color: #888888; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #0000dd; text-decoration-color: #0000dd; background-color: #ffffff; font-weight: bold\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;136;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;102;187;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;51;136;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;51;136;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;51;136;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;221;34;0;48;2;255;240;240m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;136;136;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;136;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;221;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: perldoc\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: perldoc\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #8b008b; text-decoration-color: #8b008b; background-color: #eeeedd; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\"> </span><span style=\"color: #008b45; text-decoration-color: #008b45; background-color: #eeeedd\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\">(x: </span><span style=\"color: #658b00; text-decoration-color: #658b00; background-color: #eeeedd\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\">, y: </span><span style=\"color: #658b00; text-decoration-color: #658b00; background-color: #eeeedd\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\">) -> </span><span style=\"color: #658b00; text-decoration-color: #658b00; background-color: #eeeedd\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\">:</span><span style=\"background-color: #eeeedd\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #eeeedd\"> </span><span style=\"color: #cd5555; text-decoration-color: #cd5555; background-color: #eeeedd\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #eeeedd\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\"> </span><span style=\"color: #228b22; text-decoration-color: #228b22; background-color: #eeeedd\"># comment</span><span style=\"background-color: #eeeedd\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\"> </span><span style=\"color: #8b008b; text-decoration-color: #8b008b; background-color: #eeeedd; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\"> x * </span><span style=\"color: #b452cd; text-decoration-color: #b452cd; background-color: #eeeedd\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #eeeedd\"> > y</span><span style=\"background-color: #eeeedd\"> </span>\n", | |
| "<span style=\"background-color: #eeeedd\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;139;0;139;48;2;238;238;221mdef\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;139;69;48;2;238;238;221msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m(\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221mx\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m:\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;101;139;0;48;2;238;238;221mint\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m,\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221my\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m:\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;101;139;0;48;2;238;238;221mint\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m)\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m-\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m>\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;101;139;0;48;2;238;238;221mbool\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m:\u001b[0m\u001b[48;2;238;238;221m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;238;238;221m \u001b[0m\u001b[38;2;205;85;85;48;2;238;238;221m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;238;238;221m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;34;139;34;48;2;238;238;221m# comment\u001b[0m\u001b[48;2;238;238;221m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[1;38;2;139;0;139;48;2;238;238;221mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221mx\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m*\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;180;82;205;48;2;238;238;221m2\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m>\u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221m \u001b[0m\u001b[38;2;0;0;0;48;2;238;238;221my\u001b[0m\u001b[48;2;238;238;221m \u001b[0m\n", | |
| "\u001b[48;2;238;238;221m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: rainbow_dash\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: rainbow_dash\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #2c5dcd; text-decoration-color: #2c5dcd; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #ff8000; text-decoration-color: #ff8000; background-color: #ffffff; font-weight: bold\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x:</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #5918bb; text-decoration-color: #5918bb; background-color: #ffffff; font-weight: bold\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">,</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">y:</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #5918bb; text-decoration-color: #5918bb; background-color: #ffffff; font-weight: bold\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">)</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #2c5dcd; text-decoration-color: #2c5dcd; background-color: #ffffff\">-></span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #5918bb; text-decoration-color: #5918bb; background-color: #ffffff; font-weight: bold\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #cbcbcb; text-decoration-color: #cbcbcb; background-color: #ffffff\"> </span><span style=\"color: #00cc66; text-decoration-color: #00cc66; background-color: #ffffff; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #0080ff; text-decoration-color: #0080ff; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #2c5dcd; text-decoration-color: #2c5dcd; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">x</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #2c5dcd; text-decoration-color: #2c5dcd; background-color: #ffffff\">*</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #5918bb; text-decoration-color: #5918bb; background-color: #ffffff; font-weight: bold\">2</span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #2c5dcd; text-decoration-color: #2c5dcd; background-color: #ffffff\">></span><span style=\"color: #4d4d4d; text-decoration-color: #4d4d4d; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;44;93;205;48;2;255;255;255mdef\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;255;128;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;89;24;187;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;89;24;187;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;44;93;205;48;2;255;255;255m-\u001b[0m\u001b[38;2;44;93;205;48;2;255;255;255m>\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;89;24;187;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;203;203;203;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;204;102;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;128;255;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;44;93;205;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;44;93;205;48;2;255;255;255m*\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[1;38;2;89;24;187;48;2;255;255;255m2\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;44;93;205;48;2;255;255;255m>\u001b[0m\u001b[38;2;77;77;77;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: rrt\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: rrt\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #ff0000; text-decoration-color: #ff0000; background-color: #000000\">def</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> </span><span style=\"color: #ffff00; text-decoration-color: #ffff00; background-color: #000000\">simple_function</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\">(x: int, y: int) -> bool:</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> </span><span style=\"color: #87ceeb; text-decoration-color: #87ceeb; background-color: #000000\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> </span><span style=\"color: #00ff00; text-decoration-color: #00ff00; background-color: #000000\"># comment</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> </span><span style=\"color: #ff0000; text-decoration-color: #ff0000; background-color: #000000\">return</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> x * </span><span style=\"color: #ff00ff; text-decoration-color: #ff00ff; background-color: #000000\">2</span><span style=\"color: #dddddd; text-decoration-color: #dddddd; background-color: #000000\"> > y</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"background-color: #000000\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;255;0;0;48;2;0;0;0mdef\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;255;255;0;48;2;0;0;0msimple_function\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m(\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0mx\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m:\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0mint\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m,\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0my\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m:\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0mint\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m)\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m-\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m>\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0mbool\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m:\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;135;206;235;48;2;0;0;0m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;0;255;0;48;2;0;0;0m# comment\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;255;0;0;48;2;0;0;0mreturn\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0mx\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m*\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;255;0;255;48;2;0;0;0m2\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m>\u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0m \u001b[0m\u001b[38;2;221;221;221;48;2;0;0;0my\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[48;2;0;0;0m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: sas\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: sas\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold; font-style: italic\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #800080; text-decoration-color: #800080; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #2c8553; text-decoration-color: #2c8553; background-color: #ffffff; font-weight: bold\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;44;44;255;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;3;38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;128;0;128;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;136;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;44;133;83;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: solarized-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: solarized-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #859900; text-decoration-color: #859900; background-color: #002b36\">def</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #002b36\">simple_function</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\">(x: </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #002b36\">int</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\">, y: </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #002b36\">int</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\">) </span><span style=\"color: #586e75; text-decoration-color: #586e75; background-color: #002b36\">-></span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #002b36\">bool</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\">:</span><span style=\"background-color: #002b36\"> </span>\n", | |
| "<span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #586e75; text-decoration-color: #586e75; background-color: #002b36\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #002b36\"> </span>\n", | |
| "<span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #586e75; text-decoration-color: #586e75; background-color: #002b36; font-style: italic\"># comment</span><span style=\"background-color: #002b36\"> </span>\n", | |
| "<span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #859900; text-decoration-color: #859900; background-color: #002b36\">return</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> x </span><span style=\"color: #586e75; text-decoration-color: #586e75; background-color: #002b36\">*</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #2aa198; text-decoration-color: #2aa198; background-color: #002b36\">2</span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> </span><span style=\"color: #586e75; text-decoration-color: #586e75; background-color: #002b36\">></span><span style=\"color: #839496; text-decoration-color: #839496; background-color: #002b36\"> y</span><span style=\"background-color: #002b36\"> </span>\n", | |
| "<span style=\"background-color: #002b36\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;133;153;0;48;2;0;43;54mdef\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;38;139;210;48;2;0;43;54msimple_function\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m(\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54mx\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m:\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;38;139;210;48;2;0;43;54mint\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m,\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54my\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m:\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;38;139;210;48;2;0;43;54mint\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m)\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;88;110;117;48;2;0;43;54m-\u001b[0m\u001b[38;2;88;110;117;48;2;0;43;54m>\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;38;139;210;48;2;0;43;54mbool\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m:\u001b[0m\u001b[48;2;0;43;54m \u001b[0m\n", | |
| "\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;88;110;117;48;2;0;43;54m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;0;43;54m \u001b[0m\n", | |
| "\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[3;38;2;88;110;117;48;2;0;43;54m# comment\u001b[0m\u001b[48;2;0;43;54m \u001b[0m\n", | |
| "\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;133;153;0;48;2;0;43;54mreturn\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54mx\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;88;110;117;48;2;0;43;54m*\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;42;161;152;48;2;0;43;54m2\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;88;110;117;48;2;0;43;54m>\u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54m \u001b[0m\u001b[38;2;131;148;150;48;2;0;43;54my\u001b[0m\u001b[48;2;0;43;54m \u001b[0m\n", | |
| "\u001b[48;2;0;43;54m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: solarized-light\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: solarized-light\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #859900; text-decoration-color: #859900; background-color: #fdf6e3\">def</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #fdf6e3\">simple_function</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\">(x: </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #fdf6e3\">int</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\">, y: </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #fdf6e3\">int</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\">) </span><span style=\"color: #93a1a1; text-decoration-color: #93a1a1; background-color: #fdf6e3\">-></span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #268bd2; text-decoration-color: #268bd2; background-color: #fdf6e3\">bool</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\">:</span><span style=\"background-color: #fdf6e3\"> </span>\n", | |
| "<span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #93a1a1; text-decoration-color: #93a1a1; background-color: #fdf6e3\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #fdf6e3\"> </span>\n", | |
| "<span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #93a1a1; text-decoration-color: #93a1a1; background-color: #fdf6e3; font-style: italic\"># comment</span><span style=\"background-color: #fdf6e3\"> </span>\n", | |
| "<span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #859900; text-decoration-color: #859900; background-color: #fdf6e3\">return</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> x </span><span style=\"color: #93a1a1; text-decoration-color: #93a1a1; background-color: #fdf6e3\">*</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #2aa198; text-decoration-color: #2aa198; background-color: #fdf6e3\">2</span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> </span><span style=\"color: #93a1a1; text-decoration-color: #93a1a1; background-color: #fdf6e3\">></span><span style=\"color: #657b83; text-decoration-color: #657b83; background-color: #fdf6e3\"> y</span><span style=\"background-color: #fdf6e3\"> </span>\n", | |
| "<span style=\"background-color: #fdf6e3\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;133;153;0;48;2;253;246;227mdef\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;38;139;210;48;2;253;246;227msimple_function\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m(\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227mx\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m:\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;38;139;210;48;2;253;246;227mint\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m,\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227my\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m:\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;38;139;210;48;2;253;246;227mint\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m)\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;147;161;161;48;2;253;246;227m-\u001b[0m\u001b[38;2;147;161;161;48;2;253;246;227m>\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;38;139;210;48;2;253;246;227mbool\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m:\u001b[0m\u001b[48;2;253;246;227m \u001b[0m\n", | |
| "\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;147;161;161;48;2;253;246;227m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;253;246;227m \u001b[0m\n", | |
| "\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[3;38;2;147;161;161;48;2;253;246;227m# comment\u001b[0m\u001b[48;2;253;246;227m \u001b[0m\n", | |
| "\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;133;153;0;48;2;253;246;227mreturn\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227mx\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;147;161;161;48;2;253;246;227m*\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;42;161;152;48;2;253;246;227m2\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;147;161;161;48;2;253;246;227m>\u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227m \u001b[0m\u001b[38;2;101;123;131;48;2;253;246;227my\u001b[0m\u001b[48;2;253;246;227m \u001b[0m\n", | |
| "\u001b[48;2;253;246;227m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: staroffice\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: staroffice\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">def </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">simple_function</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">(</span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">x</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">: </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">int</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">, </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">y</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">: </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">int</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">) -> </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">bool</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\"> </span><span style=\"color: #ee0000; text-decoration-color: #ee0000; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\"> </span><span style=\"color: #696969; text-decoration-color: #696969; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\"> return </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">x</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\"> * </span><span style=\"color: #ee0000; text-decoration-color: #ee0000; background-color: #ffffff\">2</span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #ffffff\"> > </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\">y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;0;0;128;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;238;0;0;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;105;105;105;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;238;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;128;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: stata-dark\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: stata-dark\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #7686bb; text-decoration-color: #7686bb; background-color: #232629; font-weight: bold\">def</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\"> </span><span style=\"color: #6a6aff; text-decoration-color: #6a6aff; background-color: #232629\">simple_function</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\">(x: int, y: int) -> bool:</span><span style=\"background-color: #232629\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #232629\"> </span><span style=\"color: #51cc99; text-decoration-color: #51cc99; background-color: #232629\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #232629\"> </span>\n", | |
| "<span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\"> </span><span style=\"color: #777777; text-decoration-color: #777777; background-color: #232629; font-style: italic\"># comment</span><span style=\"background-color: #232629\"> </span>\n", | |
| "<span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\"> </span><span style=\"color: #7686bb; text-decoration-color: #7686bb; background-color: #232629; font-weight: bold\">return</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\"> x * </span><span style=\"color: #4fb8cc; text-decoration-color: #4fb8cc; background-color: #232629\">2</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #232629\"> > y</span><span style=\"background-color: #232629\"> </span>\n", | |
| "<span style=\"background-color: #232629\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;118;134;187;48;2;35;38;41mdef\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;106;106;255;48;2;35;38;41msimple_function\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m(\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41mx\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m:\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41mint\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m,\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41my\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m:\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41mint\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m)\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m-\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m>\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41mbool\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m:\u001b[0m\u001b[48;2;35;38;41m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;35;38;41m \u001b[0m\u001b[38;2;81;204;153;48;2;35;38;41m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;35;38;41m \u001b[0m\n", | |
| "\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[3;38;2;119;119;119;48;2;35;38;41m# comment\u001b[0m\u001b[48;2;35;38;41m \u001b[0m\n", | |
| "\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[1;38;2;118;134;187;48;2;35;38;41mreturn\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41mx\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m*\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;79;184;204;48;2;35;38;41m2\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m>\u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41m \u001b[0m\u001b[38;2;204;204;204;48;2;35;38;41my\u001b[0m\u001b[48;2;35;38;41m \u001b[0m\n", | |
| "\u001b[48;2;35;38;41m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: stata-light\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: stata-light\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #353580; text-decoration-color: #353580; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x:</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">int,</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">y:</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">int)</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">-></span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #7a2424; text-decoration-color: #7a2424; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #008800; text-decoration-color: #008800; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #353580; text-decoration-color: #353580; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">x</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">*</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #2c2cff; text-decoration-color: #2c2cff; background-color: #ffffff\">2</span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">></span><span style=\"color: #111111; text-decoration-color: #111111; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;53;53;128;48;2;255;255;255mdef\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;122;36;36;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[3;38;2;0;136;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[1;38;2;53;53;128;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;44;44;255;48;2;255;255;255m2\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;17;17;17;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: tango\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: tango\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #204a87; text-decoration-color: #204a87; background-color: #f8f8f8; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">(</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\">x</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">:</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #204a87; text-decoration-color: #204a87; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">,</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> y</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">:</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #204a87; text-decoration-color: #204a87; background-color: #f8f8f8\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">)</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #ce5c00; text-decoration-color: #ce5c00; background-color: #f8f8f8; font-weight: bold\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #204a87; text-decoration-color: #204a87; background-color: #f8f8f8\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8; font-weight: bold\">:</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #f8f8f8; text-decoration-color: #f8f8f8; background-color: #f8f8f8\"> </span><span style=\"color: #8f5902; text-decoration-color: #8f5902; background-color: #f8f8f8; font-style: italic\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #8f5902; text-decoration-color: #8f5902; background-color: #f8f8f8; font-style: italic\"># comment</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #204a87; text-decoration-color: #204a87; background-color: #f8f8f8; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> x </span><span style=\"color: #ce5c00; text-decoration-color: #ce5c00; background-color: #f8f8f8; font-weight: bold\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #0000cf; text-decoration-color: #0000cf; background-color: #f8f8f8; font-weight: bold\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> </span><span style=\"color: #ce5c00; text-decoration-color: #ce5c00; background-color: #f8f8f8; font-weight: bold\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #f8f8f8\"> y</span><span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "<span style=\"background-color: #f8f8f8\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;32;74;135;48;2;248;248;248mdef\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248msimple_function\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m(\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;32;74;135;48;2;248;248;248mint\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m,\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;32;74;135;48;2;248;248;248mint\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m)\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;206;92;0;48;2;248;248;248m-\u001b[0m\u001b[1;38;2;206;92;0;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;32;74;135;48;2;248;248;248mbool\u001b[0m\u001b[1;38;2;0;0;0;48;2;248;248;248m:\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;248;248;248;48;2;248;248;248m \u001b[0m\u001b[3;38;2;143;89;2;48;2;248;248;248m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[3;38;2;143;89;2;48;2;248;248;248m# comment\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;32;74;135;48;2;248;248;248mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248mx\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;206;92;0;48;2;248;248;248m*\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;0;0;207;48;2;248;248;248m2\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[1;38;2;206;92;0;48;2;248;248;248m>\u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248m \u001b[0m\u001b[38;2;0;0;0;48;2;248;248;248my\u001b[0m\u001b[48;2;248;248;248m \u001b[0m\n", | |
| "\u001b[48;2;248;248;248m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: trac\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: trac\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #990000; text-decoration-color: #990000; background-color: #ffffff; font-weight: bold\">simple_function</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">(x: </span><span style=\"color: #999999; text-decoration-color: #999999; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #999999; text-decoration-color: #999999; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">-></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #999999; text-decoration-color: #999999; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #bbbbbb; text-decoration-color: #bbbbbb; background-color: #ffffff\"> </span><span style=\"color: #bb8844; text-decoration-color: #bb8844; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #999988; text-decoration-color: #999988; background-color: #ffffff; font-style: italic\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">*</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #009999; text-decoration-color: #009999; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff; font-weight: bold\">></span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[1;38;2;0;0;0;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;153;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;153;153;153;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;153;153;153;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;153;153;153;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;187;187;187;48;2;255;255;255m \u001b[0m\u001b[38;2;187;136;68;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[3;38;2;153;153;136;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;153;153;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[1;38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: vim\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: vim\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #cdcd00; text-decoration-color: #cdcd00; background-color: #000000\">def</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> simple_function(x: </span><span style=\"color: #cd00cd; text-decoration-color: #cd00cd; background-color: #000000\">int</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\">, y: </span><span style=\"color: #cd00cd; text-decoration-color: #cd00cd; background-color: #000000\">int</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\">) </span><span style=\"color: #3399cc; text-decoration-color: #3399cc; background-color: #000000\">-></span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #cd00cd; text-decoration-color: #cd00cd; background-color: #000000\">bool</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\">:</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #cd0000; text-decoration-color: #cd0000; background-color: #000000\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #000080; text-decoration-color: #000080; background-color: #000000\"># comment</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #cdcd00; text-decoration-color: #cdcd00; background-color: #000000\">return</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> x </span><span style=\"color: #3399cc; text-decoration-color: #3399cc; background-color: #000000\">*</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #cd00cd; text-decoration-color: #cd00cd; background-color: #000000\">2</span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> </span><span style=\"color: #3399cc; text-decoration-color: #3399cc; background-color: #000000\">></span><span style=\"color: #cccccc; text-decoration-color: #cccccc; background-color: #000000\"> y</span><span style=\"background-color: #000000\"> </span>\n", | |
| "<span style=\"background-color: #000000\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;205;205;0;48;2;0;0;0mdef\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0msimple_function\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m(\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0mx\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m:\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;0;205;48;2;0;0;0mint\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m,\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0my\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m:\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;0;205;48;2;0;0;0mint\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m)\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;51;153;204;48;2;0;0;0m-\u001b[0m\u001b[38;2;51;153;204;48;2;0;0;0m>\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;0;205;48;2;0;0;0mbool\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m:\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;0;0;48;2;0;0;0m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;0;0;128;48;2;0;0;0m# comment\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;205;0;48;2;0;0;0mreturn\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0mx\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;51;153;204;48;2;0;0;0m*\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;205;0;205;48;2;0;0;0m2\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;51;153;204;48;2;0;0;0m>\u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0m \u001b[0m\u001b[38;2;204;204;204;48;2;0;0;0my\u001b[0m\u001b[48;2;0;0;0m \u001b[0m\n", | |
| "\u001b[48;2;0;0;0m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: vs\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: vs\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: int, y: int) -> bool:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #a31515; text-decoration-color: #a31515; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #008000; text-decoration-color: #008000; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #0000ff; text-decoration-color: #0000ff; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * 2 > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;0;0;255;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;163;21;21;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;128;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;255;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: xcode\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: xcode\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #a90d91; text-decoration-color: #a90d91; background-color: #ffffff\">def</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> simple_function(x: </span><span style=\"color: #a90d91; text-decoration-color: #a90d91; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">, y: </span><span style=\"color: #a90d91; text-decoration-color: #a90d91; background-color: #ffffff\">int</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">) -> </span><span style=\"color: #a90d91; text-decoration-color: #a90d91; background-color: #ffffff\">bool</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\">:</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #c41a16; text-decoration-color: #c41a16; background-color: #ffffff\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #177500; text-decoration-color: #177500; background-color: #ffffff\"># comment</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> </span><span style=\"color: #a90d91; text-decoration-color: #a90d91; background-color: #ffffff\">return</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> x * </span><span style=\"color: #1c01ce; text-decoration-color: #1c01ce; background-color: #ffffff\">2</span><span style=\"color: #000000; text-decoration-color: #000000; background-color: #ffffff\"> > y</span><span style=\"background-color: #ffffff\"> </span>\n", | |
| "<span style=\"background-color: #ffffff\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;169;13;145;48;2;255;255;255mdef\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255msimple_function\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m(\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;169;13;145;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m,\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;169;13;145;48;2;255;255;255mint\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m)\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m-\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;169;13;145;48;2;255;255;255mbool\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m:\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;196;26;22;48;2;255;255;255m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;23;117;0;48;2;255;255;255m# comment\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;169;13;145;48;2;255;255;255mreturn\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255mx\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m*\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;28;1;206;48;2;255;255;255m2\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m>\u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255m \u001b[0m\u001b[38;2;0;0;0;48;2;255;255;255my\u001b[0m\u001b[48;2;255;255;255m \u001b[0m\n", | |
| "\u001b[48;2;255;255;255m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Using the theme: zenburn\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "Using the theme: zenburn\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| }, | |
| { | |
| "data": { | |
| "text/html": [ | |
| "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #efdcbc; text-decoration-color: #efdcbc; background-color: #3f3f3f\">def</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #efef8f; text-decoration-color: #efef8f; background-color: #3f3f3f\">simple_function</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">(</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\">x</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">:</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #efef8f; text-decoration-color: #efef8f; background-color: #3f3f3f\">int</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">,</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> y</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">:</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #efef8f; text-decoration-color: #efef8f; background-color: #3f3f3f\">int</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">)</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">-></span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #efef8f; text-decoration-color: #efef8f; background-color: #3f3f3f\">bool</span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">:</span><span style=\"background-color: #3f3f3f\"> </span>\n", | |
| "<span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #7f9f7f; text-decoration-color: #7f9f7f; background-color: #3f3f3f\">\"\"\"Docstring.\"\"\"</span><span style=\"background-color: #3f3f3f\"> </span>\n", | |
| "<span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #7f9f7f; text-decoration-color: #7f9f7f; background-color: #3f3f3f; font-style: italic\"># comment</span><span style=\"background-color: #3f3f3f\"> </span>\n", | |
| "<span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #efdcbc; text-decoration-color: #efdcbc; background-color: #3f3f3f\">return</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> x </span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">*</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #8cd0d3; text-decoration-color: #8cd0d3; background-color: #3f3f3f\">2</span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> </span><span style=\"color: #f0efd0; text-decoration-color: #f0efd0; background-color: #3f3f3f\">></span><span style=\"color: #dcdccc; text-decoration-color: #dcdccc; background-color: #3f3f3f\"> y</span><span style=\"background-color: #3f3f3f\"> </span>\n", | |
| "<span style=\"background-color: #3f3f3f\"> </span>\n", | |
| "</pre>\n" | |
| ], | |
| "text/plain": [ | |
| "\u001b[38;2;239;220;188;48;2;63;63;63mdef\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;239;239;143;48;2;63;63;63msimple_function\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m(\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63mx\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m:\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;239;239;143;48;2;63;63;63mint\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m,\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63my\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m:\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;239;239;143;48;2;63;63;63mint\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m)\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m-\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m>\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;239;239;143;48;2;63;63;63mbool\u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m:\u001b[0m\u001b[48;2;63;63;63m \u001b[0m\n", | |
| "\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;127;159;127;48;2;63;63;63m\"\"\"Docstring.\"\"\"\u001b[0m\u001b[48;2;63;63;63m \u001b[0m\n", | |
| "\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[3;38;2;127;159;127;48;2;63;63;63m# comment\u001b[0m\u001b[48;2;63;63;63m \u001b[0m\n", | |
| "\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;239;220;188;48;2;63;63;63mreturn\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63mx\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m*\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;140;208;211;48;2;63;63;63m2\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;240;239;208;48;2;63;63;63m>\u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63m \u001b[0m\u001b[38;2;220;220;204;48;2;63;63;63my\u001b[0m\u001b[48;2;63;63;63m \u001b[0m\n", | |
| "\u001b[48;2;63;63;63m \u001b[0m\n" | |
| ] | |
| }, | |
| "metadata": {}, | |
| "output_type": "display_data" | |
| } | |
| ], | |
| "source": [ | |
| "def print_code(obj, syntax_kwargs, console_init_kwargs, console_print_kwargs): \n", | |
| " \"\"\"Print the code of a python object.\"\"\"\n", | |
| " console = Console(**console_init_kwargs)\n", | |
| " # Comment in the function\n", | |
| " console.print(Syntax(inspect.getsource(obj), \"python\", **syntax_kwargs), **console_print_kwargs)\n", | |
| "\n", | |
| "\n", | |
| "def simple_function(x: int, y: int) -> bool:\n", | |
| " \"\"\"Docstring.\"\"\"\n", | |
| " # comment\n", | |
| " return x * 2 > y\n", | |
| "\n", | |
| "for style in get_all_styles(): \n", | |
| " Console().print(f\"Using the theme: {style}\")\n", | |
| " print_code(simple_function, syntax_kwargs={\"theme\": style}, console_init_kwargs={}, console_print_kwargs={})" | |
| ] | |
| } | |
| ], | |
| "metadata": { | |
| "kernelspec": { | |
| "display_name": "Python 3 (ipykernel)", | |
| "language": "python", | |
| "name": "python3" | |
| }, | |
| "language_info": { | |
| "codemirror_mode": { | |
| "name": "ipython", | |
| "version": 3 | |
| }, | |
| "file_extension": ".py", | |
| "mimetype": "text/x-python", | |
| "name": "python", | |
| "nbconvert_exporter": "python", | |
| "pygments_lexer": "ipython3", | |
| "version": "3.10.13" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 5 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment