{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:31:07.043727Z", "iopub.status.busy": "2024-04-17T07:31:07.043610Z", "iopub.status.idle": "2024-04-17T07:31:07.368843Z", "shell.execute_reply": "2024-04-17T07:31:07.368530Z" } }, "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, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:31:07.382833Z", "iopub.status.busy": "2024-04-17T07:31:07.382662Z", "iopub.status.idle": "2024-04-17T07:31:07.384415Z", "shell.execute_reply": "2024-04-17T07:31:07.384161Z" }, "pycharm": { "name": "#%%\n" } }, "outputs": [], "source": [ "# Set the 'grey' theme as a default plot theme.\n", "LetsPlot.set_theme(theme_grey())" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2024-04-17T07:31:07.385658Z", "iopub.status.busy": "2024-04-17T07:31:07.385506Z", "iopub.status.idle": "2024-04-17T07:31:07.417875Z", "shell.execute_reply": "2024-04-17T07:31:07.417654Z" }, "pycharm": { "name": "#%%\n" } }, "outputs": [ { "data": { "text/html": [ "
\n", " " ], "text/plain": [ "" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ggplot({'x': [1, 2, 3], 'y': [1, 2, 3]}, aes('x', 'y')) + geom_point()" ] } ], "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": 1 }