MCPcopy Index your code
hub / github.com/plotly/plotly.py / initialize

Function initialize

js/src/widget.ts:2065–2068  ·  view source on GitHub ↗

@type {import('anywidget/types').Initialize }

(ctx)

Source from the content-addressed store, hash-verified

2063 return {
2064 /** @type {import('anywidget/types').Initialize<Model>} */
2065 initialize(ctx) {
2066 model = new FigureModel(ctx.model, serializers);
2067 model.initialize();
2068 },
2069 /** @type {import('anywidget/types').Render<Model>} */
2070 render({ el }) {
2071 const view = new FigureView(model, el);

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected