Spaces:
Runtime error
Runtime error
Upload demo.ipynb
Browse files- demo.ipynb +64 -0
demo.ipynb
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "raw",
|
5 |
+
"id": "0a7f25bf",
|
6 |
+
"metadata": {},
|
7 |
+
"source": [
|
8 |
+
"---\n",
|
9 |
+
"title: 🚀 Demo notebook\n",
|
10 |
+
"description: Simple notebook with widgets demo\n",
|
11 |
+
"params:\n",
|
12 |
+
" year:\n",
|
13 |
+
" input: slider\n",
|
14 |
+
" label: Please select the year\n",
|
15 |
+
" min: 2000\n",
|
16 |
+
" max: 2100\n",
|
17 |
+
" value: 2022\n",
|
18 |
+
" greetings:\n",
|
19 |
+
" input: select\n",
|
20 |
+
" label: Please select greetings\n",
|
21 |
+
" value: Hello\n",
|
22 |
+
" choices: [Cześć, Hello, Hi, Ciao, Salut]\n",
|
23 |
+
" name:\n",
|
24 |
+
" input: text\n",
|
25 |
+
" label: What is your name?\n",
|
26 |
+
" value: Piotr\n",
|
27 |
+
" ---"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"cell_type": "markdown",
|
32 |
+
"id": "fdeea7d2",
|
33 |
+
"metadata": {},
|
34 |
+
"source": [
|
35 |
+
"# 🚀 Demo notebook with greetings 👋"
|
36 |
+
]
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"cell_type": "code",
|
40 |
+
"execution_count": null,
|
41 |
+
"id": "d02827f1",
|
42 |
+
"metadata": {},
|
43 |
+
"outputs": [],
|
44 |
+
"source": [
|
45 |
+
"year = 2022\n",
|
46 |
+
"greetings = \"Hello\"\n",
|
47 |
+
"name = \"Piotr\""
|
48 |
+
]
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"cell_type": "code",
|
52 |
+
"execution_count": null,
|
53 |
+
"id": "237ce289",
|
54 |
+
"metadata": {},
|
55 |
+
"outputs": [],
|
56 |
+
"source": [
|
57 |
+
"print(f\"{greetings} {name} in {year}\")"
|
58 |
+
]
|
59 |
+
}
|
60 |
+
],
|
61 |
+
"metadata": {},
|
62 |
+
"nbformat": 4,
|
63 |
+
"nbformat_minor": 5
|
64 |
+
}
|