Skip to content
  • Sponsor ipython/ipython-in-depth

  • Notifications You must be signed in to change notification settings
  • Fork 752
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipython/ipython-in-depth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: patch-1
Choose a base ref
...
head repository: ipython/ipython-in-depth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 14,833 additions and 3,131 deletions.
  1. +5 −0 .gitignore
  2. +0 −60 Index - Basic.ipynb
  3. +0 −98 Index - Interactive Widgets.ipynb
  4. +84 −0 Index.ipynb
  5. +33 −14 README.md
  6. +75 −0 binder/Index.ipynb
  7. +1 −0 binder/apt.txt
  8. +17 −0 binder/environment.yml
  9. +2 −2 examples/Builtin Extensions/Cython Magics.ipynb
  10. +3 −3 examples/Builtin Extensions/Index.ipynb
  11. +0 −101 examples/Customization/Index.ipynb
  12. +0 −99 examples/Customization/appconfig.py
  13. +20 −2 examples/Embedding/Index.ipynb
  14. +24 −14 examples/Embedding/embed_class_long.py
  15. +1,185 −4 examples/IPython Kernel/Animations Using clear_output.ipynb
  16. +53 −35 examples/IPython Kernel/Background Jobs.ipynb
  17. +196 −646 examples/IPython Kernel/Beyond Plain Python.ipynb
  18. +192 −24 examples/IPython Kernel/Capturing Output.ipynb
  19. +55 −66 examples/IPython Kernel/Cell Magics.ipynb
  20. +801 −46 examples/IPython Kernel/Custom Display Logic.ipynb
  21. +763 −0 examples/IPython Kernel/Importing Notebooks.ipynb
  22. +49 −20 examples/IPython Kernel/Index.ipynb
  23. +2,638 −19 examples/IPython Kernel/Plotting in the Notebook.ipynb
  24. +38 −43 examples/IPython Kernel/Raw Input in the Notebook.ipynb
  25. +1,598 −1,428 examples/IPython Kernel/Rich Output.ipynb
  26. +27 −9 examples/IPython Kernel/Script Magics.ipynb
  27. +3,290 −12 examples/IPython Kernel/SymPy.ipynb
  28. +22 −4 examples/IPython Kernel/Terminal Usage.ipynb
  29. +47 −30 examples/IPython Kernel/Third Party Rich Output.ipynb
  30. +848 −15 examples/IPython Kernel/Trapezoid Rule.ipynb
  31. +359 −0 examples/IPython Kernel/Updating Displays.ipynb
  32. +527 −11 examples/IPython Kernel/Working With External Code.ipynb
  33. +0 −1 examples/IPython Kernel/example-demo.py
  34. +1 −1 examples/IPython Kernel/gui/gui-glut.py
  35. +2 −2 examples/IPython Kernel/gui/gui-gtk3.py
  36. +2 −4 examples/IPython Kernel/gui/gui-tk.py
  37. +4 −13 examples/IPython Kernel/ipython-completion.bash
  38. 0 examples/IPython Kernel/nbpackage/__init__.py
  39. +69 −0 examples/IPython Kernel/nbpackage/mynotebook.ipynb
  40. 0 examples/IPython Kernel/nbpackage/nbs/__init__.py
  41. +14 −6 PyCon2015 Logistics.ipynb → examples/IPython Kernel/nbpackage/nbs/other.ipynb
  42. +22 −9 examples/Index.ipynb
  43. +2 −2 examples/Interactive Widgets/Custom Widget - Hello World.ipynb
  44. +15 −15 examples/Interactive Widgets/Index.ipynb
  45. +2 −2 examples/Interactive Widgets/Widget Basics.ipynb
  46. +2 −2 examples/Interactive Widgets/Widget Events.ipynb
  47. +2 −2 examples/Interactive Widgets/Widget List.ipynb
  48. +2 −2 examples/Interactive Widgets/Widget Styling.ipynb
  49. +13 −13 examples/Notebook/Index.ipynb
  50. +181 −0 examples/Notebook/Julia and Python Bridge.ipynb
  51. +107 −8 examples/Notebook/Multiple Languages, Frontends.ipynb
  52. +5 −5 examples/Notebook/Notebook Basics.ipynb
  53. +378 −0 examples/Notebook/R Demo.ipynb
  54. +25 −37 examples/Notebook/Running Code.ipynb
  55. +15 −79 examples/Notebook/Running the Notebook Server.ipynb
  56. +22 −3 examples/Notebook/Typesetting Equations.ipynb
  57. +77 −77 examples/Notebook/Working With Markdown Cells.ipynb
  58. BIN examples/Notebook/images/animation.m4v
  59. BIN examples/Notebook/images/command_mode.png
  60. BIN examples/Notebook/images/dashboard_notebooks_tab.png
  61. BIN examples/Notebook/images/dashboard_notebooks_tab_4_0.png
  62. BIN examples/Notebook/images/dashboard_notebooks_tab_5_0.png
  63. BIN examples/Notebook/images/edit_mode.png
  64. +269 −0 examples/Notebook/images/python-logo.svg
  65. +8 −8 examples/Parallel Computing/Index.ipynb
  66. +2 −1 examples/utils/list_subdirs.ipy
  67. +553 −0 exercises/Customization/Custom magic and cross language integration.ipynb
  68. +10 −0 exercises/Customization/tictoc_solution.py
  69. +19 −19 exercises/Parallel Computing/Overview of IPython.parallel.ipynb
  70. +6 −0 monitor.sh
  71. +52 −15 pycon-submission.md
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.DS_Store
*.pyc
.ipynb_checkpoints
*.c
*.so
*.o
examples/IPython Kernel/test.txt
examples/IPython Kernel/mod.py
60 changes: 0 additions & 60 deletions Index - Basic.ipynb

This file was deleted.

98 changes: 0 additions & 98 deletions Index - Interactive Widgets.ipynb

This file was deleted.

84 changes: 84 additions & 0 deletions Index.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# IPython & Jupyter: a PyCon 2017 tutorial"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Class outline:\n",
"\n",
"* A quick installation check of [ipython](https://ipython.org/install.html) and [jupyter notebook](https://jupyter.readthedocs.io/en/latest/install.html)\n",
"* An overview of the IPython project from [the official website](http://ipython.org), and [jupyter](https://jupyter.org)\n",
"* Super basic intro to the notebook: typing code.\n",
"* [Notebook Basics](examples/Notebook/Notebook%20Basics.ipynb)\n",
"* [IPython - beyond plain python](examples/IPython%20Kernel/Beyond%20Plain%20Python.ipynb)\n",
"* [Markdown Cells](examples/Notebook/Working%20With%20Markdown%20Cells.ipynb)\n",
"* [Rich Display System](examples/IPython%20Kernel/Rich%20Output.ipynb)\n",
"* [Custom Display logic](examples/IPython%20Kernel/Custom%20Display%20Logic.ipynb)\n",
"* [Customizing IPython - a condensed version](exercises/Customization/Condensed.ipynb)\n",
"* [Running a Secure Public Notebook Server](examples/Notebook/Running%20the%20Notebook%20Server.ipynb#Securing-the-notebook-server)\n",
"* [How Jupyter/IPython works](examples/Notebook/Multiple%20Languages%2C%20Frontends.ipynb) to run code in different languages."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Get this tutorial:\n",
"\n",
" git clone https://github.com/ipython/ipython-in-depth\n",
"\n",
"Install IPython and Jupyter:\n",
"\n",
"with [conda](https://www.continuum.io/downloads):\n",
"\n",
" conda install ipython jupyter\n",
"\n",
"with pip:\n",
"\n",
" # first, upgrade pip!\n",
" pip install --upgrade pip\n",
" pip install --upgrade ipython jupyter\n",
"\n",
"Start the notebook in the tutorial directory:\n",
"\n",
" cd ipython-in-depth\n",
" jupyter notebook"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"There are a lot more detailed notebooks in this same directory that cover other topics, but we can not cover all in a 3-hour tutorial. We encourage you to explore them and practice on your own."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
47 changes: 33 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# IPython in depth tutorial

In its current form, this tutorial is meant to be executed with IPython 2.0 or
newer. You can find our installation instructions [here](http://ipython.org/install.html).
Try it out on Binder! [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ipython/ipython-in-depth/master?filepath=binder%2FIndex.ipynb)

If you prefer using pip, you can also run:
In its current form, this tutorial is meant to be executed with Jupyter notebook
5.0, using IPython 6.0 or newer on Python 3, the latest IPython version
compatible with Python 2 is IPython 5.x that may not have the exact same
behavior and all the features presented in this tutorial.

pip install --upgrade ipython[notebook]

which should give you all the necessary dependencies.

You can find our installation instructions [for
IPython](https://ipython.org/install.html) and [Jupyter
notebook](https://jupyter.readthedocs.io/en/latest/install.html)

To get the tutorial, checkout the `ipython-in-depth` repo:

git clone https://github.com/ipython/ipython-in-depth

Or just
[download current master](https://github.com/ipython/ipython-in-depth/zipball/master)
and unzip it.
Or [download current
master](https://github.com/ipython/ipython-in-depth/zipball/master) and unzip
it.

At the command line, you can do this with (depending on whether your system
uses wget or curl):
At the command line, you can do this with (depending on whether your system uses
wget or curl):

wget https://github.com/ipython/ipython-in-depth/zipball/master -O ipython-in-depth.zip

@@ -29,8 +31,25 @@ or

And then:

unzip ipython-in-depth.zip
unzip ipython-in-depth.zip

Change directory inside the directory newly created:

cd ipython-in-depth

You can then start the Jupyter notebook server at a terminal with:

jupyter notebook


## Docker images

The tutorial do reference a couple of docker images that are quite heavy
(several GB). Please do not download them on conference wifi. You may want to
populate the Docker Cache you may want to use the following command ahead of
time:

You can then start the IPython notebook server at a terminal with:
$ docker pull jupyter/datascience-notebook

ipython notebook
The image contains a installation of the Jupyter notebook with R, Julia,
Python2, Python3 and a couple of libraries for each language.
75 changes: 75 additions & 0 deletions binder/Index.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Welcome to Jupyter!"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This repo contains an introduction to [Jupyter](https://jupyter.org) and [IPython](https://ipython.org).\n",
"\n",
"Outline of some basics:\n",
"\n",
"* [Notebook Basics](../examples/Notebook/Notebook%20Basics.ipynb)\n",
"* [IPython - beyond plain python](../examples/IPython%20Kernel/Beyond%20Plain%20Python.ipynb)\n",
"* [Markdown Cells](../examples/Notebook/Working%20With%20Markdown%20Cells.ipynb)\n",
"* [Rich Display System](../examples/IPython%20Kernel/Rich%20Output.ipynb)\n",
"* [Custom Display logic](../examples/IPython%20Kernel/Custom%20Display%20Logic.ipynb)\n",
"* [Running a Secure Public Notebook Server](../examples/Notebook/Running%20the%20Notebook%20Server.ipynb#Securing-the-notebook-server)\n",
"* [How Jupyter works](../examples/Notebook/Multiple%20Languages%2C%20Frontends.ipynb) to run code in different languages."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can also get this tutorial and run it on your laptop:\n",
"\n",
" git clone https://github.com/ipython/ipython-in-depth\n",
"\n",
"Install IPython and Jupyter:\n",
"\n",
"with [conda](https://www.anaconda.com/download):\n",
"\n",
" conda install ipython jupyter\n",
"\n",
"with pip:\n",
"\n",
" # first, always upgrade pip!\n",
" pip install --upgrade pip\n",
" pip install --upgrade ipython jupyter\n",
"\n",
"Start the notebook in the tutorial directory:\n",
"\n",
" cd ipython-in-depth\n",
" jupyter notebook"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
1 change: 1 addition & 0 deletions binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
texlive
Loading