Skip to content

Instantly share code, notes, and snippets.

@agoose77
Created January 29, 2024 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agoose77/b7e643b57660217771ae590e3a1cd56c to your computer and use it in GitHub Desktop.
Save agoose77/b7e643b57660217771ae590e3a1cd56c to your computer and use it in GitHub Desktop.
jupytext kernelspec
formats text_representation
ipynb,.pct.py:percent,.lgt.py:light,.spx.py:sphinx,md,Rmd,.pandoc.md:pandoc,.myst.md:myst
extension format_name format_version jupytext_version
.md
myst
0.7
1.4.0+dev
display_name language name
Python 3
python
python3

A quick insight at world population

Collecting population data

In the below we retrieve population data from the World Bank using the wbdata python package

from IPython.display import display, HTML, Markdown

world_pop = 7_000_000_000
print("The world pop is", world_pop)

display(
  HTML("<b>This is a bold statement</b> to make")
)

conclusion = Markdown("that's a **lot**")

We did some computation, and the world population is {eval}world_pop people! {eval}conclusion. See {cite:ps}einstein

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment