{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "*Note: we're not using this example yet, we should add it as an example in the README.md*" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import sys\n", "\n", "from IPython.display import HTML, display, Markdown, JSON, Image, Latex\n", "import matplotlib.pyplot as plt\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(\"some message\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(\"sending something to standard error\", file=sys.stderr)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "plt.plot([1, 1, 1])" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "df = pd.DataFrame({\"x\": [1, 2, 3]})\n", "df" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "display(df)\n", "df.x.plot()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "html = HTML(\n", " 'this is some HTML: join our community!'\n", ")\n", "display(html)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "display(Markdown(\"**this is some markdown**\"))\n", "display(JSON(data=dict(this=\"is\", some=\"json\", data=\"\")))\n", "Latex(\"this is some latex: $ x = 1$\")" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "print(\"showing our logo :)\")\n", "Image(url=\"https://raw.githubusercontent.com/ploomber/ploomber/master/_static/logo.png\")" ] } ], "metadata": { "kernelspec": { "display_name": "ploomber-engine", "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.8" }, "vscode": { "interpreter": { "hash": "e9a38feee8a35967525e7836479294423cd64a17f54b24e1486f61aab3949499" } } }, "nbformat": 4, "nbformat_minor": 4 }