Skip to content

Commit

Permalink
setup !
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardakor committed Feb 23, 2024
1 parent eb9db9e commit 53a7274
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
28 changes: 28 additions & 0 deletions CheatSheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

# Jupyter Lab Cheat Sheet for VS Code on Windows

## General Shortcuts
- **Open Command Palette**: `Ctrl + Shift + P`
- **Save Notebook**: `Ctrl + S`
- **Open New Terminal**: `Ctrl + Shift + ``

## Jupyter Notebook Shortcuts
- **Run All Cells**: `Shift + Alt + F`
- **Run Current Cell**: `Ctrl + Enter`
- **Run Current Cell and Select Below**: `Shift + Enter`
- **Run Cell and All Below**: `Shift + Alt + Enter`
- **Run Cell and Insert Below**: `Alt + Enter`
- **Add New Cell Above**: `Esc` then `A`
- **Add New Cell Below**: `Esc` then `B`
- **Change Cell to Code**: `Esc` then `Y`
- **Change Cell to Markdown**: `Esc` then `M`
- **Delete Current Cell**: `Esc` then `D D` (press D twice)
- **Interrupt Kernel**: `I, I` (press `I` twice quickly, when in command mode)
- **Restart Kernel**: Use Command Palette (`Ctrl + Shift + P`) and type "Restart Kernel"

## Customization
You can customize or add more shortcuts by going to `File` -> `Preferences` -> `Keyboard Shortcuts` in VS Code.

---

This cheat sheet is focused on the essential shortcuts for managing Jupyter Notebooks within Visual Studio Code on Windows. For more detailed information or further customization, refer to the official VS Code and Jupyter documentation.
52 changes: 52 additions & 0 deletions FirstNotebook.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"import requests"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"standings_url = \"https://fbref.com/en/comps/9/Premier-League-Stats\""
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"data = requests.get(standings_url)"
]
}
],
"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.12.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit 53a7274

Please sign in to comment.