"Welcome to CS 220. This notebook file should now be opened in Jupyter Lab. This is the development environment where you will by writing Python code.\n",
"\n",
"In the cell below, you should see a line of python code (`print(\"Hello World\")`). Click on the cell to get a cursor and then type `shift-enter` to run the code in that cell. The output from running the code should appear just below the cell.\n",
"\n",
"## Test 1 -- Running Python Code"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "18f71407-2e77-409d-8968-283a44ef8eaa",
"metadata": {},
"outputs": [],
"source": [
"print(\"Hello World\")"
]
},
{
"cell_type": "markdown",
"id": "ef3f15f4-7d7e-4ec4-b487-c8852546af1d",
"metadata": {},
"source": [
"If you see the output from running the code, then you have Python working."
]
},
{
"cell_type": "markdown",
"id": "44280d0b-712b-4af6-b5e9-0cf757ec030b",
"metadata": {},
"source": [
"## Test 2 -- Checking Python Version\n",
"\n",
"Now let's check that you have the same Python version as the one we will use when testing your code. Again, in the code cell below, click and then run (type `shift-enter`) and see if you have version 3.10.12 installed."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "653ac7e8-eb8a-4dd8-9c36-bb38b13becc0",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"print(sys.version)"
]
},
{
"cell_type": "markdown",
"id": "7fc97288-8b03-4d89-bb9a-e15dca94f682",
"metadata": {},
"source": [
"If it printed out 3.10.12 then you have the proper Python version."
"To close the sidepanel, click on the bug icon on the far right and to turn off the debugger click the bug icon at the top."
]
},
{
"cell_type": "markdown",
"id": "9c4176b9-d82a-424d-a0c2-375fc1d51e14",
"metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"## Success\n",
"\n",
"If you have passed all the tests then your system is all setup.\n",
"\n",
"One last thing you may want to do is associate jupyter notebook files (files that end with .ipynb) with this program so that you can just double-click on the file and it will launch this program to open the file. Please go back and read the installation instructions to know how to do that.\n",
"\n",
"To shut down Jupyter Lab, under the menu click `File -> Shut Down`. This will close the program and then you can close this tab within your browser."
Welcome to CS 220. This notebook file should now be opened in Jupyter Lab. This is the development environment where you will by writing Python code.
In the cell below, you should see a line of python code (`print("Hello World")`). Click on the cell to get a cursor and then type `shift-enter` to run the code in that cell. The output from running the code should appear just below the cell.
Now let's check that you have the same Python version as the one we will use when testing your code. Again, in the code cell below, click and then run (type `shift-enter`) and see if you have version 3.10.12 installed.
If you have passed all the tests then your system is all setup.
One last thing you may want to do is associate jupyter notebook files (files that end with .ipynb) with this program so that you can just double-click on the file and it will launch this program to open the file. Please go back and read the installation instructions to know how to do that.
To shut down Jupyter Lab, under the menu click `File -> Shut Down`. This will close the program and then you can close this tab within your browser.