{
"nbformat": 4,
"nbformat_minor": 5,
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.12.0"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Hello World Notebook\n",
"\n",
"A simple notebook to test rendering on sublimated."
]
},
{
"cell_type": "code",
"metadata": {},
"execution_count": 1,
"source": [
"message = \"Hello from sublimated!\"\n",
"print(message)"
],
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Hello from sublimated!\n"
]
}
]
},
{
"cell_type": "code",
"metadata": {},
"execution_count": 2,
"source": [
"# simple arithmetic\n",
"result = sum(range(1, 101))\n",
"print(f\"Sum of 1 to 100 = {result}\")"
],
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Sum of 1 to 100 = 5050\n"
]
}
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Data Table\n",
"\n",
"Execute result with HTML table output:"
]
},
{
"cell_type": "code",
"metadata": {},
"execution_count": 3,
"source": [
"data = [\n",
" {\"name\": \"Alice\", \"age\": 30, \"city\": \"Dublin\"},\n",
" {\"name\": \"Bob\", \"age\": 25, \"city\": \"Berlin\"},\n",
" {\"name\": \"Carol\", \"age\": 35, \"city\": \"Paris\"},\n",
"]\n",
"data"
],
"outputs": [
{
"output_type": "execute_result",
"execution_count": 3,
"data": {
"text/plain": "[{'name': 'Alice', 'age': 30, 'city': 'Dublin'}, {'name': 'Bob', 'age': 25, 'city': 'Berlin'}, {'name': 'Carol', 'age': 35, 'city': 'Paris'}]"
},
"metadata": {}
}
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Error Handling\n",
"\n",
"Demonstrating error output rendering:"
]
},
{
"cell_type": "code",
"metadata": {},
"execution_count": 4,
"source": [
"# this will raise an error\n",
"1 / 0"
],
"outputs": [
{
"output_type": "error",
"ename": "ZeroDivisionError",
"evalue": "division by zero",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[4], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# this will raise an error\u001b[39;00m\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;241;43m1\u001b[39;49m \u001b[38;5;241;43m/\u001b[39;49m \u001b[38;5;241;43m0\u001b[39;49m\n",
"\u001b[0;31mZeroDivisionError\u001b[0m: division by zero"
]
}
]
}
]
} v1 of v2
commit 70a68d5
message create hello-world.ipynb via macOS
author anton
date Apr 18, 2026
size 3.2 KB