mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user