{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "07755adf", "metadata": {}, "outputs": [], "source": [ "import mercury as mr\n", "app = mr.App(title=\"Hello demo 👋\", description=\"Hello demo with Text widget\", show_code=True)\n" ] }, { "cell_type": "markdown", "id": "03e09236", "metadata": {}, "source": [ "# Mercury demo 👋\n", "\n", "Share your notebooks with everyone thanks to Mercury framework!\n", "\n", "Please write your name in the left side bar and press **Enter** ⌨️ \n", "\n", "The notebook will be automatically recomputed. Only cells with widget definition and below are recomputed. That's why it is fast!\n", "\n", "You can download executed notebook as HTML or PDF (just click in the left side bar).\n", "\n", "You can edit this notebook in the Jupyter Notebook, and changes will appear instantly in the Mercury.\n" ] }, { "cell_type": "code", "execution_count": null, "id": "9157de6f", "metadata": {}, "outputs": [], "source": [ "name = mr.Text(label=\"What is you name?\", value=\"Piotr\")" ] }, { "cell_type": "code", "execution_count": null, "id": "df533a46", "metadata": {}, "outputs": [], "source": [ "mr.Markdown(f\"\"\"## Hello {name.value}! \n", "\n", "For more examples please check our documentation at RunMercury.com 📚\n", "\"\"\")" ] } ], "metadata": {}, "nbformat": 4, "nbformat_minor": 5 }