qutip/qutip-notebooks

Tutorials on matplotlib, numpy are outdated

paniash opened this issue · 1 comments

A few semantic changes have occurred over the years for both the libraries however, the brief tutorials on the website are outdated. One such example is:

from numpy import *
a = array([1,2,3,4,5,6])
print(a)

The above code semantics is outdated and should be the following instead:

import numpy as np
a = np.array([1,2,3,4,5,6])
print(a)

The outdated code might not be just limited to the aforementioned libraries. These were the only tutorials I happened to check.

I understand that this code works but it's just good practice to import numpy as np instead of from numpy import * and so on.

If it's alright, I can make a PR regarding this.