Open wavexx opened 9 years ago
I think we need to set/restore only LC_CTYPE here.
Hrm, I can't reproduce this...works fine for me in ipython2 and ipython3 using the sample files from the project.
In [1]: import tabview.tabview as t
In [2]: t.view("sample/test_latin-1.csv")
Out[2]: 0
In [7]: locale.getlocale(locale.LC_ALL)
Out[7]: (None, None)
Is there anything odd in your environment at all?
Scott
On 14/09/15 21:31, Scott Hansen wrote:
Hrm, I can't reproduce this...works fine for me in ipython2 and ipython3 using the sample files from the project.
|In [1]: import tabview.tabview as t In [2]: t.view("sample/test_latin-1.csv") Out[2]: 0 In [7]: locale.getlocale(locale.LC_ALL) Out[7]: (None, None) |
Is there anything odd in your environment at all?
Hrrm, indeed. It happens only when I load matplotlib as well.
Here's the minimal example that triggers this behavior for me:
import matplotlib.pyplot as plt plt.close(plt.figure()) import tabview as t t.view([[1]])
When running tabview as a module in ipython, I get the following: