Skip to content

Commit 9de0b12

Browse files
authored
Merge branch 'master' into python_polars
2 parents e4caefc + ad8d6c4 commit 9de0b12

File tree

111 files changed

+2979
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+2979
-44
lines changed

consuming-apis-python/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Python & APIs: A Winning Combo for Reading Public Data
2+
3+
Here you can find code examples showing how to read from different public APIs. Check out the Real Python tutorial [Python & APIs: A Winning Combo for Reading Public Data](https://realpython.com/python-api/) for more information.

consuming-apis-python/covid.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

consuming-apis-python/github.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def create_oauth_link():
3333
# website to input your credentials. Since you're doing this
3434
# programmatically, you need to get the `url` parameter and print it in
3535
# the console instead.
36-
url = response.url
37-
38-
return url
36+
return response.url
3937

4038

4139
# In this method you'll exchange the code you got from the GitHub API with

ipython-console/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code Snippets and IPython Cheat Sheet
2+
3+
This folder contains code resources and an IPython magic command cheat sheet based on the content of the Real Python tutorial [Unlock IPython's Magical Toolbox for Your Coding Journey](https://realpython.com/ipython-interactive-python-shell/).

ipython-console/employee.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
first_name = "Han"
2+
last_name = "Solo"
3+
department = "Accounts"
4+
salary = 1000
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import IPython
2+
3+
first_name = "Han"
4+
last_name = "Solo"
5+
department = "Accounts"
6+
print(f"{first_name} {last_name}")
7+
8+
IPython.embed()
9+
10+
salary = 1000

ipython-console/increment.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def salary_increment(salary):
2+
"""Calculate the new salary after applying an increment.
3+
4+
Args:
5+
salary (int): The current salary.
6+
7+
Returns:
8+
str: A string indicating the new salary after increment.
9+
"""
10+
increment = salary / 10
11+
new_salary = increment + salary
12+
return f"Your New Salary is: {new_salary}"
136 KB
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# How to Make Engaging Programming Videos
2+
3+
This repository provides the VS Code settings file that's mentioned in the Real Python [How to Make Engaging Programming Videos](https://realpython.com/how-to-make-programming-videos/) tutorial.
4+
5+
## Using the Settings
6+
7+
The provided settings file helps you to have a clutter-free and readable VS Code editor for the project that you want to record in a video.
8+
9+
Here's an example folder structure to show where you can find your existing workspace settings file:
10+
11+
```
12+
project/
13+
14+
├── .vscode/
15+
│ └── settings.json
16+
17+
└── code.py
18+
```
19+
20+
If the `.vscode/` folder and the `settings.json` don't exist, then you can create the file with the contents of [settings.json](settings.json). If you already have an existing settings file, then you may only copy the configuration objects that you want to use.
21+
22+
To learn more about adjusting your VS Code settings, check out the VS Code documentation on [user and workspace settings](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson).
23+
24+
## Before
25+
26+
[![Before](before.png)](before.png)
27+
28+
## After
29+
30+
[![After](after.png)](after.png)
31+
32+
## Author
33+
34+
- **Philipp Acsany**, E-mail: [[email protected]]([email protected])
35+
36+
## License
37+
38+
Distributed under the MIT license. See [`LICENSE`](../LICENSE) for more information.
404 KB
Loading

0 commit comments

Comments
 (0)