kdavies4 / natu

Natural units in Python
http://kdavies4.github.io/natu/
Other
33 stars 5 forks source link

DOC: Tutorial display setting seems wrong #23

Closed endolith closed 8 years ago

endolith commented 8 years ago

http://nbviewer.ipython.org/github/kdavies4/natu/blob/master/examples/tutorial.ipynb#Entering-and-displaying-a-quantity says:

We can change the display unit by setting the quantity's display property: In [4]:

length.display = 'inch' length

Out[4]: 0.0254 m

That doesn't look like inches. If I do this it works as I would expect:

length.display_unit = 'inch'

length
Out[17]: 1 inch

but I don't know what the difference is

zbeekman commented 7 years ago

Does the jupyter notebook need to be updated? The tutorial still seems to have this problem.