Skip to content

Commit

Permalink
Setup virtual environment
Browse files Browse the repository at this point in the history
  • Loading branch information
SiyuZhou918 committed Jan 31, 2023
1 parent 791fddc commit e85ab1e
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__pycache__
.ipynb_checkpoints
myvenv
139 changes: 139 additions & 0 deletions jupyter_practice.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "58f02514",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4\n"
]
}
],
"source": [
"x = 4\n",
"print(x)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "bf0387ad",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4\n"
]
}
],
"source": [
"x = 4\n",
"print(x)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "674bb4c7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4\n"
]
}
],
"source": [
"x = 4\n",
"print(x)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "5447d473",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"6\n"
]
}
],
"source": [
"y = x + 2\n",
"print(y)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "dd00e019",
"metadata": {},
"outputs": [],
"source": [
"def print_value(i):\n",
" print(i+2)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "080a5c21",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"14\n"
]
}
],
"source": [
"print_value(12)"
]
},
{
"cell_type": "markdown",
"id": "982d30ee",
"metadata": {},
"source": [
"# Markdown\n",
"* sdfs\n"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jupyter

0 comments on commit e85ab1e

Please sign in to comment.