Skip to content

Commit

Permalink
Minor fixes to DataView tutorial notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 2, 2014
1 parent 1cf81cc commit 5f28a33
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions doc/Tutorials/DataView_Tutorial.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:e059ca75962cb39bfcf049ed9b91f0970b931ddabb00df845cdeaf4aed9a5af6"
"signature": "sha256:fa6fb91a7cbfc93f8a9d9d09e78e7d04e00a5d77ffae49b5183ce7a27724eb26"
},
"nbformat": 3,
"nbformat_minor": 0,
Expand Down Expand Up @@ -262,7 +262,7 @@
"collapsed": false,
"input": [
"ys = np.sin(xs**2)\n",
"cross_section = zip(xs,ys)"
"cross_section = list(zip(xs,ys))"
],
"language": "python",
"metadata": {},
Expand Down Expand Up @@ -290,7 +290,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Data and visualization remain coupled, allowing you to get back the data via the ``.data`` attirbute:"
"Data and visualization remain coupled, allowing you to get back the data via the ``.data`` attribute:"
]
},
{
Expand Down Expand Up @@ -654,16 +654,6 @@
"And a lot, lot more..."
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'dsDDs'.capitalize()"
],
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

4 comments on commit 5f28a33

@chris-english
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very happy to explore your Dataviews Tutorial. Imagining really, really new to, well everything, python, linux, topographica, but a burning desire to get one's head around topographica and its many worthy parts some things can go wrong for the uninitiated (like myself, and soon my students...).
My first issues were with modules not found (dataviews), and fixed through appending sys.path for dataviews and param.
That said, in the section - SheetViews, the default backend selected is backend_tkagg.py, which leads to TclError: couldn't connect to display ":0". The sinusoid data is printed but not visualized. Putting %matplotlib inline, in a cell prior to plotting means all your work can be seen by us nubes.
Thanks for your documenting efforts.
Chris English

@jlstevens
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

If the IPython extension is working properly, you shouldn't be needing matplotlib inline. My first recommendation (as you are using Topographica) is to launch the notebooks with:

topographica -n

This should help get everything configured for you properly. If that doesn't work, try:

from dataviews import ipython

And see if there is a traceback - if there is, please post here so we can find the problem!

Jean-Luc

@chris-english
Copy link

@chris-english chris-english commented on 5f28a33 Jun 9, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jlstevens
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've opened this as an issue #3 to make this conversation easier to find and refer back to.

Please sign in to comment.