public class ConvertHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MARKDOWN_ANNOTATION
Note is a Zeppelin formatted object which has paragraphs instead of cell when converting Jupyter notebooks.
|
Constructor and Description |
---|
ConvertHelper() |
Modifier and Type | Method and Description |
---|---|
static com.google.gson.JsonObject |
jupyterToJSON(hudson.FilePath jupyterFile) |
static String |
jupyterToText(hudson.FilePath jupyterFile) |
static ArrayList<String> |
jupyterToTextArray(hudson.FilePath jupyterFile) |
public static final String MARKDOWN_ANNOTATION
public static String jupyterToText(hudson.FilePath jupyterFile) throws IOException, InterruptedException
jupyterFile
- Path for the jupyter notebookIOException
- when file path does not existInterruptedException
- exception on input stream readingpublic static com.google.gson.JsonObject jupyterToJSON(hudson.FilePath jupyterFile) throws IOException, InterruptedException
jupyterFile
- Path for the jupyter notebookIOException
- when file path does not existInterruptedException
- exception on input stream readingpublic static ArrayList<String> jupyterToTextArray(hudson.FilePath jupyterFile) throws IOException, InterruptedException
jupyterFile
- Path for the jupyter notebookIOException
- when file path does not existInterruptedException
- exception on input stream readingCopyright © 2016–2020. All rights reserved.