PlotTargets

viz.PlotTargets
object PlotTargets extends SharedTargets

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

object doNothing

Attributes

Inherited from:
SharedTargets
Supertypes
class Object
trait Matchable
class Any
object printlnTarget

Attributes

Inherited from:
SharedTargets
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def openBrowserWindow(uri: URI): Unit
def outPathRoot: Option[String]

Concrete fields

lazy val conf: Config
lazy val outPath: Option[String]

Givens

Givens

given almond: PlotTarget

This PlotTarget uses a mimetype of application/vnd.vega.v5+json to display Vega plots in Jupyter / VS Code notebooks. This strategy doesn't appear to be well supported, it will not display in NBViewer or github for example.

This PlotTarget uses a mimetype of application/vnd.vega.v5+json to display Vega plots in Jupyter / VS Code notebooks. This strategy doesn't appear to be well supported, it will not display in NBViewer or github for example.

Attributes

given almond_js: PlotTarget

A PlotTarget implementation for rendering Vega-Lite visualizations in Almond Jupyter notebooks.

A PlotTarget implementation for rendering Vega-Lite visualizations in Almond Jupyter notebooks.

This target creates an HTML div container with a unique ID, applies custom styling for proper embedding, and executes JavaScript to load Vega, Vega-Lite, and Vega-Embed libraries from CDN before rendering the visualization specification.

The rendering is performed asynchronously using ES modules imported from jsDelivr CDN. Any errors during the rendering process are caught and displayed as red error messages in the output div.

Attributes

Note

Requires an implicit JupyterApi (Almond kernel) to be in scope for publishing HTML and JavaScript content to the notebook.

The visualization is rendered in "vega-lite" mode using vega-embed.

given desktopBrowser: PlotTarget
given png: PlotTarget
given publishToPort(using portI: Int): UnitTarget
given tempFileSpec: PlotTarget
given tempHtmlFile: PlotTarget
given websocket: UnitTarget

Inherited givens

Attributes

Inherited from:
SharedTargets

Attributes

Inherited from:
SharedTargets