File size: 1,582 Bytes
5780425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
 "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 <a href=\"https://runmercury.com\" target=\"_blank\">RunMercury.com<a> πŸ“š\n",
    "\"\"\")"
   ]
  }
 ],
 "metadata": {},
 "nbformat": 4,
 "nbformat_minor": 5
}