Skip to content

Commit b865b58

Browse files
authored
Initial commit
0 parents  commit b865b58

9 files changed

Lines changed: 441 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Data For Science
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Template
2+
3+
![GitHub](https://img.shields.io/github/license/DataForScience/LangChain)
4+
[![Twitter @data4sci](https://img.shields.io/twitter/follow/data4sci)](https://twitter.com/intent/follow?screen_name=data4sci)
5+
![GitHub top language](https://img.shields.io/github/languages/top/DataForScience/LangChain)
6+
![GitHub repo size](https://img.shields.io/github/repo-size/DataForScience/LangChain)
7+
![GitHub last commit](https://img.shields.io/github/last-commit/DataForScience/LangChain)
8+
9+
[![Graphs For Science](https://img.shields.io/badge/Graphs_For_Science-Subscribe-blue)](https://graphs4sci.substack.com/)
10+
[![Data Science Briefing](https://img.shields.io/badge/Sunday_Briefing-Subscribe-blue)](https://data4science.ck.page/a63d4cc8d9)
11+
12+
### Code and slides to accompany the online series of webinars: https://data4sci.com/langchain by Data For Science.
13+
14+
15+
<blurb>
16+
17+
## Setup
18+
19+
Install [uv](https://docs.astral.sh/uv/) if you don't have it yet:
20+
21+
```bash
22+
curl -LsSf https://astral.sh/uv/install.sh | sh
23+
```
24+
25+
Install dependencies and launch Jupyter:
26+
27+
```bash
28+
uv sync
29+
uv run jupyter notebook
30+
```
31+
32+
## Schedule
33+
34+
## Author
35+
36+
<table border="0">
37+
<tr>
38+
<td>
39+
<img src="data/bgoncalves.png" alt="Bruno Gonçalves" width="150" height="150" style="border-radius: 50%; object-fit: cover;">
40+
</td>
41+
<td>
42+
<h2>Bruno Gonçalves</h2>
43+
<h3>Data For Science, Inc.</h3>
44+
<p>
45+
Web: <a href="http://www.data4sci.com/">www.data4sci.com</a><br>
46+
Twitter/X: <a href="https://twitter.com/bgoncalves">@bgoncalves</a><br>
47+
LinkedIn: <a href="https://www.linkedin.com/in/bmtgoncalves/">@bmtgoncalves</a><br>
48+
Email: <a href="info@data4sci.com">info@data4sci.com</a><br>
49+
Schedule a Call: <a href="https://data4sci.com/call">https://data4sci.com/call</a>
50+
</p>
51+
</td>
52+
</tr>
53+
</table>

‎Untitled.ipynb‎

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"<div style=\"width: 100%; overflow: hidden;\">\n",
8+
" <div style=\"width: 150px; float: left;\"> <img src=\"data/D4Sci_logo_ball.png\" alt=\"Data For Science, Inc\" align=\"left\" border=\"0\"> </div>\n",
9+
" <div style=\"float: left; margin-left: 10px;\"> <h1>Course</h1>\n",
10+
"<h1>Lecture</h1>\n",
11+
" <p>Bruno Gonçalves<br/>\n",
12+
" <a href=\"http://www.data4sci.com/\">www.data4sci.com</a><br/>\n",
13+
" @bgoncalves, @data4sci</p></div>\n",
14+
"</div>"
15+
]
16+
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": 1,
20+
"metadata": {},
21+
"outputs": [],
22+
"source": [
23+
"from collections import Counter\n",
24+
"from pprint import pprint\n",
25+
"\n",
26+
"import pandas as pd\n",
27+
"import numpy as np\n",
28+
"import matplotlib.pyplot as plt \n",
29+
"\n",
30+
"import watermark\n",
31+
"\n",
32+
"%load_ext watermark\n",
33+
"%matplotlib inline"
34+
]
35+
},
36+
{
37+
"cell_type": "markdown",
38+
"metadata": {},
39+
"source": [
40+
"We start by print out the versions of the libraries we're using for future reference"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 2,
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"name": "stdout",
50+
"output_type": "stream",
51+
"text": [
52+
"Python implementation: CPython\n",
53+
"Python version : 3.13.3\n",
54+
"IPython version : 9.10.0\n",
55+
"\n",
56+
"Compiler : Clang 17.0.0 (clang-1700.0.13.3)\n",
57+
"OS : Darwin\n",
58+
"Release : 25.3.0\n",
59+
"Machine : arm64\n",
60+
"Processor : arm\n",
61+
"CPU cores : 16\n",
62+
"Architecture: 64bit\n",
63+
"\n",
64+
"Git hash: 2d937797e294df968da1e3ab9686701aea2890fa\n",
65+
"\n",
66+
"matplotlib: 3.10.8\n",
67+
"numpy : 2.4.2\n",
68+
"pandas : 3.0.1\n",
69+
"platform : 1.0.8\n",
70+
"watermark : 2.6.0\n",
71+
"\n"
72+
]
73+
}
74+
],
75+
"source": [
76+
"%watermark -n -v -m -g -iv"
77+
]
78+
},
79+
{
80+
"cell_type": "markdown",
81+
"metadata": {},
82+
"source": [
83+
"Load default figure style"
84+
]
85+
},
86+
{
87+
"cell_type": "code",
88+
"execution_count": 3,
89+
"metadata": {},
90+
"outputs": [],
91+
"source": [
92+
"plt.style.use('d4sci.mplstyle')\n",
93+
"colors = plt.rcParams['axes.prop_cycle'].by_key()['color']"
94+
]
95+
},
96+
{
97+
"cell_type": "markdown",
98+
"metadata": {},
99+
"source": [
100+
"# Start"
101+
]
102+
},
103+
{
104+
"cell_type": "code",
105+
"execution_count": null,
106+
"metadata": {},
107+
"outputs": [],
108+
"source": []
109+
},
110+
{
111+
"cell_type": "markdown",
112+
"metadata": {},
113+
"source": [
114+
"<center>\n",
115+
" <img src=\"data/D4Sci_logo_full.png\" alt=\"Data For Science, Inc\" align=\"center\" border=\"0\" width=300px> \n",
116+
"</center>"
117+
]
118+
}
119+
],
120+
"metadata": {
121+
"kernelspec": {
122+
"display_name": "Python 3 (ipykernel)",
123+
"language": "python",
124+
"name": "python3"
125+
},
126+
"language_info": {
127+
"codemirror_mode": {
128+
"name": "ipython",
129+
"version": 3
130+
},
131+
"file_extension": ".py",
132+
"mimetype": "text/x-python",
133+
"name": "python",
134+
"nbconvert_exporter": "python",
135+
"pygments_lexer": "ipython3",
136+
"version": "3.13.3"
137+
},
138+
"toc": {
139+
"base_numbering": 1,
140+
"nav_menu": {},
141+
"number_sections": true,
142+
"sideBar": true,
143+
"skip_h1_title": true,
144+
"title_cell": "Table of Contents",
145+
"title_sidebar": "Contents",
146+
"toc_cell": false,
147+
"toc_position": {},
148+
"toc_section_display": true,
149+
"toc_window_display": false
150+
},
151+
"varInspector": {
152+
"cols": {
153+
"lenName": 16,
154+
"lenType": 16,
155+
"lenVar": 40
156+
},
157+
"kernels_config": {
158+
"python": {
159+
"delete_cmd_postfix": "",
160+
"delete_cmd_prefix": "del ",
161+
"library": "var_list.py",
162+
"varRefreshCmd": "print(var_dic_list())"
163+
},
164+
"r": {
165+
"delete_cmd_postfix": ") ",
166+
"delete_cmd_prefix": "rm(",
167+
"library": "var_list.r",
168+
"varRefreshCmd": "cat(var_dic_list()) "
169+
}
170+
},
171+
"types_to_exclude": [
172+
"module",
173+
"function",
174+
"builtin_function_or_method",
175+
"instance",
176+
"_Feature"
177+
],
178+
"window_display": false
179+
}
180+
},
181+
"nbformat": 4,
182+
"nbformat_minor": 4
183+
}

0 commit comments

Comments
 (0)