Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
swc-bb
S
swc-lessons
2020-04-20-Potsdam-Berlin
Python
Commits
96e8d34c
Commit
96e8d34c
authored
Nov 08, 2019
by
Iain
Committed by
Maxim Belkin
Nov 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
01-numpy.md: Remove paragraph about '%matplotlib inline' magic (#733)
Resolves: swcarpentry/python-novice-inflammation#716
parent
ab3246cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
_episodes/01-numpy.md
_episodes/01-numpy.md
+1
-20
No files found.
_episodes/01-numpy.md
View file @
96e8d34c
...
...
@@ -740,26 +740,7 @@ matplotlib.pyplot.show()

Blue pixels in this heat map represent low values, while yellow pixels represent high values. As we
can see, inflammation rises and falls over a 40-day period.
> ## Some IPython Magic
>
> If you're using a Jupyter notebook,
> you'll need to execute the following command
> in order for your matplotlib images to appear
> in the notebook when `show()` is called:
>
> ~~~
> %matplotlib inline
> ~~~
> {: .language-python}
>
> The `%` indicates an IPython magic function -
> a function that is only valid within the notebook environment.
> Note that you only have to execute this function once per notebook.
{: .callout}
Let's take a look at the average inflammation over time:
can see, inflammation rises and falls over a 40-day period. Let's take a look at the average inflammation over time:
~~~
ave_inflammation = numpy.mean(data, axis=0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment