Skip to content

Commit

Permalink
edit app.py file from notebook example
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed May 16, 2024
1 parent 35a0741 commit 632bc34
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
49 changes: 39 additions & 10 deletions python/hal9.ipynb
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install hal9\n",
"!hal9 create my-project\n",
"!hal9 deploy my-project\n"
]
}
"cell_type": "code",
"source": [
"!pip install hal9"
],
"metadata": {},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"%%writefile app.py\n",
"import sys\n",
"\n",
"name = input(\"What's your name!? \")\n",
"print(f\"Hello {name}\")"
],
"metadata": {},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!hal9 run ."
],
"metadata": {},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"source": [
"!HAL9_TOKEN= hal9 deploy ."
],
"metadata": {},
"execution_count": null,
"outputs": []
}
],
"metadata": {
"language_info": {
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hal9"
version = "2.0.8"
version = "2.0.9"
description = ""
authors = ["Javier Luraschi <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 632bc34

Please sign in to comment.