Files
2026-07-13 12:42:18 +08:00

92 lines
1.8 KiB
Plaintext

{
"cells": [
{
"cell_type": "markdown",
"id": "7fb27b941602401d91542211134fc71a",
"metadata": {},
"source": [
"# Sample Notebook\n",
"This is a markdown cell."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "acae54e37e7d407bbb7b55eff062a284",
"metadata": {},
"outputs": [],
"source": [
"%pip install pandas\n",
"!ls -la\n",
"import os\n",
"from pathlib import Path\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9a63283cbaf04dbcab1f6479b197f3a8",
"metadata": {},
"outputs": [],
"source": [
"import math\n",
"\n",
"def add(x, y):\n",
" return x + y\n",
"\n",
"def multiply(a, b):\n",
" return a * b\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8dd0d8092fe74a7c96281538738b07e2",
"metadata": {},
"outputs": [],
"source": [
"class DataProcessor:\n",
" def __init__(self, name):\n",
" self.name = name\n",
"\n",
" def process(self, data):\n",
" result = add(data, 1)\n",
" return multiply(result, 2)\n"
]
},
{
"cell_type": "raw",
"id": "72eea5119410473aa328ad9291626812",
"metadata": {},
"source": [
"This raw cell should be skipped."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8edb47106e1a46a883d545849b8ab81b",
"metadata": {},
"outputs": [],
"source": [
"processor = DataProcessor('test')\n",
"output = processor.process(5)\n",
"print(output)\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.11.0"
}
},
"nbformat": 4,
"nbformat_minor": 5
}