Package uk.ac.starlink.ttools.build
Class Plot2Notebook
- java.lang.Object
-
- uk.ac.starlink.ttools.build.Plot2Notebook
-
public class Plot2Notebook extends java.lang.Object
Utility methods for writing JupyterNotebooks that can be used with the plot server.- Since:
- 5 Mar 2020
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description static JupyterCell
PLOT_CELL
JupyterCell instance that sets upPLOTWORDS_FUNC
.static java.lang.String
PLOTSERV_PY_RESOURCE
Resource containing plotserv.py.static java.lang.String
PLOTWORDS_FUNC
Name of python function that will yield a plot, taking only a single argument which is a string array of the form ["", "= ", "= ", ...].
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JupyterCell
createPlotWordsCell(java.lang.String[] words)
Creates a cell that will generate a plot.static void
main(java.lang.String[] args)
Writes to standard output an ipynb file that will generate some plots for any installation (no data required).
-
-
-
Field Detail
-
PLOTSERV_PY_RESOURCE
public static final java.lang.String PLOTSERV_PY_RESOURCE
Resource containing plotserv.py.- See Also:
- Constant Field Values
-
PLOT_CELL
public static final JupyterCell PLOT_CELL
JupyterCell instance that sets upPLOTWORDS_FUNC
.
-
PLOTWORDS_FUNC
public static final java.lang.String PLOTWORDS_FUNC
Name of python function that will yield a plot, taking only a single argument which is a string array of the form ["", "= ", "= ", ...]. Must match content of PLOTSERV_PY_RESOURCE
.- See Also:
- Constant Field Values
-
-
Method Detail
-
createPlotWordsCell
public static JupyterCell createPlotWordsCell(java.lang.String[] words)
Creates a cell that will generate a plot.- Parameters:
words
- arguments of plot function: ["", "= ", "= ", ...]
-
main
public static void main(java.lang.String[] args)
Writes to standard output an ipynb file that will generate some plots for any installation (no data required).- Parameters:
args
- ignored
-
-