fixed PY-14199 IPython Notebook Editing in Pycharm causes "bad request" error when loading in web browser

specified encoding for ipython notebooks
This commit is contained in:
Ekaterina Tuzova
2014-12-27 18:35:32 +03:00
parent 671e76a25f
commit dd5df80384
@@ -311,14 +311,14 @@ public class IpnbConnection {
}
}
private void addCellOutput(@NotNull final PyContent content, ArrayList<IpnbOutputCell> output) {
private static void addCellOutput(@NotNull final PyContent content, ArrayList<IpnbOutputCell> output) {
if (content instanceof PyErrContent) {
output.add(new IpnbErrorOutputCell(((PyErrContent)content).getEvalue(),
((PyErrContent)content).getEname(), ((PyErrContent)content).getTraceback(), null));
}
else if (content instanceof PyStreamContent) {
final String data = ((PyStreamContent)content).getData();
output.add(new IpnbStreamOutputCell(data, new String[]{data}, null));
output.add(new IpnbStreamOutputCell(((PyStreamContent)content).getName(), new String[]{data}, null));
}
else if (content instanceof PyOutContent) {
final Map<String, String> data = ((PyOutContent)content).getData();