Skip to content

Commit

Permalink
Add Hello notebook (#3)
Browse files Browse the repository at this point in the history
* Add Hello notebook

* Add Hello implementaiton
  • Loading branch information
g4brielvs authored Sep 19, 2024
1 parent 1a28add commit d3f8de3
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 18 deletions.
20 changes: 2 additions & 18 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,7 @@ format: jb-book
root: README

parts:
- caption: Examples
- caption: Notebooks
numbered: True
chapters:
- file: notebooks/world-bank-api.ipynb
- file: notebooks/world-bank-package.ipynb
- file: notebooks/nasa-apod.ipynb
- file: notebooks/bibliography.ipynb
- caption: Gallery
chapters:
- file: docs/gallery
- caption: Additional Resources
chapters:
- url: https://datapartnership.org
title: Development Data Partnership
- url: https://wbdatalab.org
title: World Bank Data Lab
- url: https://www.worldbank.org/en/about/unit/unit-dec
title: World Bank DEC
- url: https://www.worldbank.org/en/research/dime
title: World Bank DIME
- file: notebooks/hello.ipynb
64 changes: 64 additions & 0 deletions notebooks/hello.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "dda38dcb-16c3-4d6c-839f-8fe06a52395f",
"metadata": {},
"source": [
"# Hello World!"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "327068a2-9e54-46b4-b25e-511168867d81",
"metadata": {},
"outputs": [],
"source": [
"from template.example import hello"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "9dcd1e49-f397-4c79-9a4a-593b5c3fe146",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Hello World!'"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"hello()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.4"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
2 changes: 2 additions & 0 deletions src/template/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def hello():
return "Hello World!"

0 comments on commit d3f8de3

Please sign in to comment.