MCPcopy Index your code
hub / github.com/bqplot/bqplot / create_model

Function create_model

js/src/test/widget-utils.ts:21–42  ·  view source on GitHub ↗
(
  manager,
  module_name: string,
  model: string,
  view: string,
  id: string,
  args = {}
)

Source from the content-addressed store, hash-verified

19}
20
21export async function create_model(
22 manager,
23 module_name: string,
24 model: string,
25 view: string,
26 id: string,
27 args = {}
28) {
29 const model_widget = await manager.new_widget(
30 {
31 model_module: module_name,
32 model_name: model,
33 model_module_version: '*',
34 view_module: module_name,
35 view_name: view,
36 view_module_version: '*',
37 model_id: id,
38 },
39 args
40 );
41 return model_widget;
42}
43
44export async function create_view(manager, model, options = {}) {
45 const view = await manager.create_view(model, options);

Callers 10

image.tsFile · 0.90
create_model_bqplotFunction · 0.85
create_model_bqscalesFunction · 0.85
create_figure_scatterFunction · 0.85
create_figure_linesFunction · 0.85
create_figure_pieFunction · 0.85
create_figure_barsFunction · 0.85
create_figure_histFunction · 0.85
create_figure_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…