{ "cells": [ { "cell_type": "code", "execution_count": 3, "id": "b1c0cd50", "metadata": {}, "outputs": [], "source": [ "from IPython.display import display_javascript" ] }, { "cell_type": "code", "execution_count": 10, "id": "c881aa53", "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "console.log(element)" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "display_javascript(\"console.log(element.id)\", raw=True)" ] }, { "cell_type": "code", "execution_count": 11, "id": "be76a6f4", "metadata": {}, "outputs": [ { "data": { "application/javascript": [ "console.log(element.id)" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "display_javascript(\"console.log(element.id)\", raw=True)" ] }, { "cell_type": "code", "execution_count": null, "id": "dcd3e788", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": ".venv" }, "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.10" } }, "nbformat": 4, "nbformat_minor": 5 }