Skip to content

Commit

Permalink
[HWORKS-1028] New version of nbconvert breaks jupyter notebook previe…
Browse files Browse the repository at this point in the history
…w (#1720) (#1497)
  • Loading branch information
robzor92 authored Feb 22, 2024
1 parent d85028b commit 6cb75db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public String convertIPythonNotebook(Project project, Users user, String noteboo
String stdOut = processResult.getStdout();
if(!Strings.isNullOrEmpty(stdOut) && notebookConversion.equals(NotebookConversion.HTML)) {
StringBuilder renderedNotebookSB = new StringBuilder(stdOut);
int startIndex = renderedNotebookSB.indexOf("<html>");
int startIndex = renderedNotebookSB.indexOf("<html");
int stopIndex = renderedNotebookSB.length();
return renderedNotebookSB.substring(startIndex, stopIndex);
}
Expand Down

0 comments on commit 6cb75db

Please sign in to comment.