Skip to content

Commit

Permalink
add show images in ipython notebook to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
santiaago committed Mar 8, 2016
1 parent 195594d commit f62f516
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ You can name containers by using the `--name`
* [how to login into docker hub](#how-to-login-into-docker-hub)
* [save current docker](#save-current-docker)
* [access docker container through a terminal](#access-docker-container-through-a-terminal)
* [show images in ipython notebook](#show-images-in-ipython-notebook)

#### run assignments:
~~~
Expand Down Expand Up @@ -101,5 +102,14 @@ mem_gib = mem_bytes/(1024.**3) # e.g. 3.74

If the memory is not what you expect you might need to turn down your containers, open virtual box and change the ram settings there before running the `docker run` cmd again.

#### show images in ipython notebook

you need to add `%matplotlib inline` to be able to show images in your ipython notebook.

~~~
# you need a matplotlib inline to be able to show images in python notebook
%matplotlib inline
plt.imshow(train_dataset[0])
plt.title("Char " + str(train_labels[0]))
~~~

0 comments on commit f62f516

Please sign in to comment.