You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then do a double-click on the variable called translate_digits in the Variable Explorer, you get this error in the internal console
Traceback (most recent call last):
File "/home/carlos/Projects/spyder/github-repo/spyder/widgets/variableexplorer/collectionseditor.py", line 483, in createEditor
editor = TextEditor(value, key)
File "/home/carlos/Projects/spyder/github-repo/spyder/widgets/variableexplorer/texteditor.py", line 44, in __init__
text = to_text_string(text, 'utf8')
File "/home/carlos/Projects/spyder/github-repo/spyder/py3compat.py", line 137, in to_text_stringreturnunicode(obj, encoding)
File "/home/carlos/.virtualenvs/test-ipy-stable/lib/python2.7/encodings/utf_8.py", line 16, in decodereturn codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 128: invalid start byte
i think the solution is if we fail to initialize TextEditor, then we shouldn't show it.
@mariacamilaremolinagutierrez, DataFrameEditor has a method called setup_and_check, for you to look at. TextEditor should have a similar method to use it as DataFrameEditor.setup_and_check is also used.
The text was updated successfully, but these errors were encountered:
If you evaluate this code in Python 2
and then do a double-click on the variable called
translate_digits
in the Variable Explorer, you get this error in the internal consolei think the solution is if we fail to initialize
TextEditor
, then we shouldn't show it.@mariacamilaremolinagutierrez,
DataFrameEditor
has a method calledsetup_and_check
, for you to look at.TextEditor
should have a similar method to use it asDataFrameEditor.setup_and_check
is also used.The text was updated successfully, but these errors were encountered: