You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a notebook client which runs in a web context, following the notebook example.
I have an autorun mode where on load all the cells should be run automatically. Toolbar items and input prompts should be hidden. This question is specific to Input prompts.
At the moment I am preventing the rendering of input prompts by changing the contentFactory injected as configuration into the NotebookWidgetFactory. I am subclassing NotebookPanel.ContentFactory and overriding createInputPrompt to return a widget that I manually dispose right after its creation.
You can also hide the widget using this.hide()- it's not leaking anything since you are rendering it without any text. I'm not sure, but the cell itself may rely on having a valid input widget (i.e., not disposed).
I am writing a notebook client which runs in a web context, following the notebook example.
I have an autorun mode where on load all the cells should be run automatically. Toolbar items and input prompts should be hidden. This question is specific to Input prompts.
At the moment I am preventing the rendering of input prompts by changing the contentFactory injected as configuration into the NotebookWidgetFactory. I am subclassing NotebookPanel.ContentFactory and overriding createInputPrompt to return a widget that I manually dispose right after its creation.
I have not found another approach so far, and was wondering is this right ?
PS: is there any way to add a Question tag when opening an issue ?
The text was updated successfully, but these errors were encountered: