Skip to content

Commit

Permalink
add requirements cell to notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Sep 27, 2024
1 parent d12c0be commit 90c0393
Show file tree
Hide file tree
Showing 25 changed files with 809 additions and 46 deletions.
37 changes: 35 additions & 2 deletions tutorials/FITS-cubes/FITS-cubes.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"astroquery\n",
"matplotlib\n",
"numpy\n",
"reproject\n",
"spectral_cube\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -825,14 +850,22 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
32 changes: 30 additions & 2 deletions tutorials/FITS-header/FITS-header.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -242,14 +262,22 @@
"name": "",
"published": true
},
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
34 changes: 32 additions & 2 deletions tutorials/FITS-images/FITS-images.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirements for running this notebook:\n",
"astropy\n",
"matplotlib\n",
"numpy\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -632,14 +654,22 @@
"name": "",
"published": true
},
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
34 changes: 32 additions & 2 deletions tutorials/FITS-tables/FITS-tables.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"matplotlib\n",
"numpy\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -350,14 +372,22 @@
"name": "",
"published": true
},
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
36 changes: 34 additions & 2 deletions tutorials/Models-Quick-Fit/Models-Quick-Fit.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"astroquery\n",
"matplotlib\n",
"numpy\n",
"scipy\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -766,14 +790,22 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"astroquery\n",
"IPython\n",
"numpy\n",
"PIL\n",
"pylab\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1155,14 +1180,22 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
},
"rise": {
"transition": "none"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Required packages for this notebook:\n",
"astropy\n",
"astroquery\n",
"IPython\n",
"numpy\n",
"PIL\n",
"pylab\n",
"\n"
]
}
],
"source": [
"with open('requirements.txt') as f:\n",
" print(f\"Required packages for this notebook:\\n{f.read()}\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1707,14 +1732,22 @@
],
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "astropy-tutorials",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython"
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python"
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
},
"rise": {
"transition": "none"
Expand Down
Loading

0 comments on commit 90c0393

Please sign in to comment.