Package uk.ac.starlink.ttools.build
Class Plot2Notebook
java.lang.Object
uk.ac.starlink.ttools.build.Plot2Notebook
Utility methods for writing JupyterNotebooks that can be used with
the plot server.
- Since:
- 5 Mar 2020
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JupyterCell
JupyterCell instance that sets upPLOTWORDS_FUNC
.static final String
Resource containing plotserv.py.static final String
Name of python function that will yield a plot, taking only a single argument which is a string array of the form ["", "= ", "= ", ...]. -
Method Summary
Modifier and TypeMethodDescriptionstatic JupyterCell
createPlotWordsCell
(String[] words) Creates a cell that will generate a plot.static void
Writes to standard output an ipynb file that will generate some plots for any installation (no data required).
-
Field Details
-
PLOTSERV_PY_RESOURCE
Resource containing plotserv.py.- See Also:
-
PLOT_CELL
JupyterCell instance that sets upPLOTWORDS_FUNC
. -
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:
-
-
Method Details
-
createPlotWordsCell
Creates a cell that will generate a plot.- Parameters:
words
- arguments of plot function: ["", "= ", "= ", ...]
-
main
Writes to standard output an ipynb file that will generate some plots for any installation (no data required).- Parameters:
args
- ignored
-