{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "27c415bc-19bd-4ab4-80c9-efdb5d33c03a", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "from lets_plot import *\n", "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 2, "id": "4fd87740-b782-4c39-8020-71528f1b58c4", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ggplot() \\\n", " + geom_label(\n", " x=0, y=0, label='Here is a label with a google! link',\n", " tooltips=layer_tooltips().line('Link to a google inside a tooltip')\n", " \n", " ) \\\n", " + labs(\n", " title='Notebook with links',\n", " subtitle='Visit lets-plot.org for more examples',\n", " caption='Data provided by NASA and EISA.'\n", " ) \n" ] }, { "cell_type": "code", "execution_count": 3, "id": "b01a1665-f4ab-450a-bc3f-9934f80e735d", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "dump_plot(_)" ] }, { "cell_type": "code", "execution_count": null, "id": "a42e0e9f-1a70-4ad9-bdc1-fd01ea9caa56", "metadata": {}, "outputs": [], "source": [] } ], "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.8.18" } }, "nbformat": 4, "nbformat_minor": 5 }