Skip to content

Instantly share code, notes, and snippets.

@manuelsilverio
Last active October 26, 2022 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save manuelsilverio/063487c676daa584a7af12a18452539a to your computer and use it in GitHub Desktop.
Save manuelsilverio/063487c676daa584a7af12a18452539a to your computer and use it in GitHub Desktop.
jupyter_quick_tutorial
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## To install Jupyter notebook"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pip install notebook"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Run Jupyter Notebook"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"jupyter notebook"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# This is a heading 1\n",
"## This is a heading 2\n",
"### This is a heading 3\n",
"#### This is a heading 4\n",
"\n",
"* This is a list item\n",
"* This is another list item\n",
"* This is the last list item\n",
"\n",
"And here we have some regular text"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"And if we press shif + enter then the above cell becomes this:\n",
"# This is a heading 1\n",
"## This is a heading 2\n",
"### This is a heading 3\n",
"#### This is a heading 4\n",
"\n",
"* This is a list item\n",
"* This is another list item\n",
"* This is the last list item\n",
"\n",
"And here we have some regular text"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Main keys in Jupyter\n",
"\n",
"* To exit edit mode: -esc-\n",
"* To enter edit mode: -enter-\n",
"* To change cell type from text to python code: -m-\n",
"* To run cell: -shift + enter-\n",
"\n",
"#### after pressing -esc- and out of edit mode you can:\n",
"* To add cell above: -a-\n",
"* To add cell below: -b-\n",
"* To delete cell: press -d- twice\n",
"* Use up and down arrows to move up and down from cell to cell"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.8.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment