Main entry point of the package
Description
This function reads the connection info file, creases a "Kernel" object and runs it, i.e. starts the kernel.
Usage
main()main()
| Title: | Yet Another R Kernel for Jupyter |
|---|---|
| Description: | Provides a kernel for Jupyter. |
| Authors: | Martin Elff [aut, cre] (ORCID: <https://orcid.org/0000-0001-9032-9739>) |
| Maintainer: | Martin Elff <[email protected]> |
| License: | GPL-2 |
| Version: | 1.3 |
| Built: | 2026-05-29 19:40:31 UTC |
| Source: | https://github.com/melff/RKernel |
Add a class to those who are output using display() when
they are autoprinted, i.e. returned as the value of the last expression
in a Jupyter notebook cell.
add_displayed_classes(x)add_displayed_classes(x)
x |
A character string, the name of a class. |
Add a handler for HTTP requests with slug given by 'slug'.
add_http_handler(slug, handler)add_http_handler(slug, handler)
slug |
The first part (slug) of the URL to be handled |
handler |
A function that handles GET requests with URLs that have 'slug' as path component |
Add a class to those who are output using Page() when
they are autoprinted, i.e. returned as the value of the last expression
in a Jupyter notebook cell.
add_paged_classes(x)add_paged_classes(x)
x |
A character string, the name of a class. |
A constructor function for a class that inherits from 'AnyWidget' (or 'AnyWidgetClass')
AnyWidget(esm, css, anywidget_id, ...)AnyWidget(esm, css, anywidget_id, ...)
esm |
Character string, code for an ECMAscript (Javascript) moldue |
css |
Character string with CSS code |
anywidget_id |
Character string with a unique ID for the widget |
... |
Other arguments which create additional components of the widget |
## Not run: esm <- ' function render({ model, el }) { let button = document.createElement("button"); button.innerHTML = `count is ${model.get("value")}`; button.addEventListener("click", () => { model.set("value", model.get("value") + 1); model.save_changes(); }); model.on("change:value", () => { button.innerHTML = `count is ${model.get("value")}`; }); el.classList.add("counter-widget"); el.appendChild(button); } export default { render }; ' css <- ' .counter-widget button { color: white; font-size: 1.75rem; background-color: #ea580c; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; } .counter-widget button:hover { background-color: #9a3412; } ' CountWidget <- AnyWidget( esm = esm, css = css, anywidget_id = "CountWidget", value = Integer(0) ) CountWidget(value=42) ## End(Not run)## Not run: esm <- ' function render({ model, el }) { let button = document.createElement("button"); button.innerHTML = `count is ${model.get("value")}`; button.addEventListener("click", () => { model.set("value", model.get("value") + 1); model.save_changes(); }); model.on("change:value", () => { button.innerHTML = `count is ${model.get("value")}`; }); el.classList.add("counter-widget"); el.appendChild(button); } export default { render }; ' css <- ' .counter-widget button { color: white; font-size: 1.75rem; background-color: #ea580c; padding: 0.5rem 1rem; border: none; border-radius: 0.25rem; } .counter-widget button:hover { background-color: #9a3412; } ' CountWidget <- AnyWidget( esm = esm, css = css, anywidget_id = "CountWidget", value = Integer(0) ) CountWidget(value=42) ## End(Not run)
Support for AnyWidgets
Support for AnyWidgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> AnyWidget
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
_view_moduleName of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
_anywidget_idA Unicode trait
_cssA Unicode trait with optional CSS code
_esmA Unicode trait with optional Javascript code
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()clone()
The objects of this class are cloneable with this method.
AnyWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor function to create boolean trait(let)s.
Boolean(...)Boolean(...)
... |
Arguments that are passed to the initialize method of 'BooleanClass' |
RKernel::Trait -> Boolean
valueA logical vector, usually of length 1
optionalLogical, whether an initializing logical value must be provided
coerceLogical, whether 'as.logical()' is implicitely used when a value is assigned to the trait
lengthInteger, the length of the logical vector that poses as the value of the traitlet.
validator()
A validator method
BooleanClass$validator(value)
valueA value to be checked for validity
new()
The initializing method
BooleanClass$new( initial, coerce = TRUE, optional = length(initial) == 0, length = 1 )
initialA value with which the traitlet is initialized
coerceLogical, used to initialize the 'coerce' field
optionalLogical, used to initialize the 'optional' field
lengthInteger, used to initialize the 'length' field
clone()
The objects of this class are cloneable with this method.
BooleanClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating pairs of point numbers that are bounded within an interval, where a pair defines a number range.
BoundedFloatRangeWidget(value, min, max, ...)BoundedFloatRangeWidget(value, min, max, ...)
value |
A pair of floating point values. |
min |
The lower bound of the enclosing interval. |
max |
The upper bound of the enclosing interval. |
... |
Other arguments, passed to the superclass initializer. |
The function BoundedFloatRangeWidget creates objects of the R6
Class "BoundedFloatRangeWidgetClass", which in turn have the S3 class
attribute "BoundedFloatRangeWidget"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedFloatRangeWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Validate the "value" after assignment.
BoundedFloatRangeWidgetClass$validate_value(value)
valueA value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedFloatRangeWidgetClass$validate_min(min)
minA minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedFloatRangeWidgetClass$validate_max(max)
maxA maximum value, should be numeric.
new()
BoundedFloatRangeWidgetClass$new(...)
...Arguments passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
BoundedFloatRangeWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating point numbers.
BoundedFloatText(value = 0, min = 0, max = 100, step = 0.1, ...)BoundedFloatText(value = 0, min = 0, max = 100, step = 0.1, ...)
value |
Initial value of the floating point number. |
min |
Lower limit of the enclosing interval. |
max |
Upper limit of the enclosing interval. |
step |
Increment by which the number is increased or decreased by the text field controls. |
... |
Other arguments. |
The function BoundedFloatText creates objects of the R6 Class
"BoundedFloatTextClass", which in turn have the S3 class attribute "BoundedFloatText".
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedFloatWidget -> BoundedFloatText
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
disabledA Boolean traitlet, whether the text widget is disabled.
continuous_updateA Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
stepA Float traitlet, a step size by which the value is incremented or decremented if the arrows are clicked.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedFloatWidget$initialize()RKernel::BoundedFloatWidget$validate_max()RKernel::BoundedFloatWidget$validate_min()RKernel::BoundedFloatWidget$validate_value()clone()
The objects of this class are cloneable with this method.
BoundedFloatTextClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating point numbers that are bounded within an interval
BoundedFloatWidget(value, min, max, ...)BoundedFloatWidget(value, min, max, ...)
value |
The floating point value |
min |
The lower bound of the interval |
max |
The upper bound of the interval |
... |
Other arguments, passed to the superclass initializer |
The function BoundedFloatWidget creates objects of the R6 Class
"BoundedFloatWidgetClass", which in turn have the S3 class attribute "BoundedFloatWidget"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedFloatWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Validate the "value" after assignment.
BoundedFloatWidgetClass$validate_value(value)
valueA value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedFloatWidgetClass$validate_min(min)
minA minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedFloatWidgetClass$validate_max(max)
maxA maximum value, should be numeric.
new()
Initialize an object.
BoundedFloatWidgetClass$new(value, min, max, ...)
valueThe floating point value.
minThe lower bound of the interval.
maxThe upper bound of the interval.
...Other arguments, passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
BoundedFloatWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate integer numbers
BoundedIntText(value = 0, min = 0, max = 100, step = 1, ...)BoundedIntText(value = 0, min = 0, max = 100, step = 1, ...)
value |
Initial value of the integer number |
min |
Lower limit of the enclosing interval |
max |
Upper limit of the enclosing interval |
step |
Increment by which the number is increased or decreased by the text field controls |
... |
Arguments passed to the superclass constructor |
The function BoundedIntText creates objects of the R6 Class
"BoundedIntTextClass", which in turn have the S3 class attribute "BoundedIntText"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedIntWidget -> BoundedIntText
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
disabledA Boolean traitlet, whether the text widget is disabled.
continuous_updateA Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
stepA Integer traitlet, a step size by which the value is incremented or decremented if the arrows are clicked.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedIntWidget$initialize()RKernel::BoundedIntWidget$validate_max()RKernel::BoundedIntWidget$validate_min()RKernel::BoundedIntWidget$validate_value()clone()
The objects of this class are cloneable with this method.
BoundedIntTextClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate integer numbers that are bounded within an interval.
BoundedIntWidget(value, min, max, ...) BoundedIntRangeWidget(value, min, max, ...)BoundedIntWidget(value, min, max, ...) BoundedIntRangeWidget(value, min, max, ...)
value |
A pair of integer values |
min |
The lower bound of the enclosing interval |
max |
The upper bound of the enclosing interval |
... |
Other arguments, passed to the superclass initializer |
The function BoundedIntWidget creates objects of the R6 Class
"BoundedIntWidgetClass", which in turn have the S3 class attribute "BoundedIntWidget".
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedIntWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Validate the "value" after assignment.
BoundedIntWidgetClass$validate_value(value)
valueA value, should be an integer number.
validate_min()
Validate the "min" field after assignment.
BoundedIntWidgetClass$validate_min(min)
minA minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
BoundedIntWidgetClass$validate_max(max)
maxA maximum value, should be an integer number.
new()
BoundedIntWidgetClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
BoundedIntWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedIntRangeWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Validate the "value" after assignment.
BoundedIntRangeWidgetClass$validate_value(value)
valueA value, should be an integer number.
validate_min()
Validate the "min" field after assignment.
BoundedIntRangeWidgetClass$validate_min(min)
minA minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
BoundedIntRangeWidgetClass$validate_max(max)
maxA maximum value, should be an integer number.
new()
BoundedIntRangeWidgetClass$new(...)
...Arguments passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
BoundedIntRangeWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating point numbers that are bounded within an interval on an logarithmic scale
BoundedLogFloatWidget(value, min, max, base, ...)BoundedLogFloatWidget(value, min, max, base, ...)
value |
The floating point value. |
min |
The lower bound of the interval. |
max |
The upper bound of the interval. |
base |
The base of the logarithm. |
... |
Other arguments, passed to the superclass initializer. |
The function BoundedLogFloatWidget creates objects of the R6
Class "BoundedLogFloatWidgetClass", which in turn have the S3 class
attribute "BoundedLogFloatWidget"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> BoundedLogFloatWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Validate the "value" after assignment.
BoundedLogFloatWidgetClass$validate_value(value)
valueA value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedLogFloatWidgetClass$validate_min(min)
minA minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedLogFloatWidgetClass$validate_max(max)
maxA maximum value, should be numeric.
new()
Initialize an object.
BoundedLogFloatWidgetClass$new(value, min, max, ...)
valueThe floating point value.
minThe lower bound of the interval.
maxThe upper bound of the interval.
...Other arguments, passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
BoundedLogFloatWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions to create box container widgets
Box(..., layout = NULL) HBox(..., layout = NULL, wrap = FALSE) VBox(..., layout = NULL, wrap = FALSE) GridBox(..., layout = NULL)Box(..., layout = NULL) HBox(..., layout = NULL, wrap = FALSE) VBox(..., layout = NULL, wrap = FALSE) GridBox(..., layout = NULL)
... |
Arguments passed to the superclass constructor |
layout |
An optional layout widget |
wrap |
Logical value, whether lines of widgets should be wrapped? |
VBox creates vertical boxes, HBox creates horizontal boxes,
GridBox creates a grid box. In a vertical box widgets are arranged one below the other,
in a horizontal box widgets are arranged side-by-side, in a grid box widget are arraned in a
grid.
Box(): A baseline box constructor
HBox(): A horizontal box constructor
VBox(): A vertical box constructor
GridBox(): A grid box constructor
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> Box
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
_view_moduleName of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
childrenA generic vector with the widgets in the container
box_styleThe string that describes the button style
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()new()
An initializer function
BoxClass$new(children = list(), ...)
childrenA list of widgets
...Other arguments, passed to the superclass method
notify_children_displayed()
Notifies children that they are displayed
BoxClass$notify_children_displayed()
clone()
The objects of this class are cloneable with this method.
BoxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> HBox
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$initialize()RKernel::Box$notify_children_displayed()clone()
The objects of this class are cloneable with this method.
HBoxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> VBox
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$initialize()RKernel::Box$notify_children_displayed()clone()
The objects of this class are cloneable with this method.
VBoxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> GridBox
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$initialize()RKernel::Box$notify_children_displayed()clone()
The objects of this class are cloneable with this method.
GridBoxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions for boxes and box styles
Button(...) ButtonStyle(...)Button(...) ButtonStyle(...)
... |
Arguments passed to the inializer |
Button(): A button constructor
ButtonStyle(): A constructor for a button style
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> Button
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_view_moduleName of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
_view_nameName of the Javascript model view in the frontend
descriptionA button description
disabledBoolean, whether the button is disabled
iconName of an optional icon
button_styleThe string that describes the button style
tooltipAn optional tooltip string
styleThe button style, an object of class "ButtonStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()on_click()
Add or remove a click handler
ButtonClass$on_click(handler, remove = FALSE)
handlerA function that is called when the button is clicked
removeLogical value, whether the handler is to be removed
click()
Function that calls the click event handlers
ButtonClass$click()
clone()
The objects of this class are cloneable with this method.
ButtonClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> ButtonStyle
_model_nameName of the Javascript model in the frontend
button_colorThe colour of the button
font_familyThe font family of the button label
font_sizeThe font size of the button label
font_styleThe font style of the button label
font_variantThe font variant of the button label
font_weightThe font weight of the button label
text_colorThe text colour of the button label
text_decorationThe text decoration of the button label
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
ButtonStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor function to create (raw) bytes trait(let)s.
Bytes(...)Bytes(...)
... |
Arguments that are passed to the initialize method of 'BytesClass' |
RKernel::Trait -> Bytes
valueA raw bytes vector
optionalLogical, whether an initializing logical value must be provided
coerceLogical, whether 'as.raw()' is implicitely used when a value is assigned to the trait
validator()
A validator method
BytesClass$validator(value)
valueA value to be checked for validity
new()
The initializing method
BytesClass$new(initial = raw(0), coerce = TRUE, optional = TRUE)
initialA value with which the traitlet is initialized
coerceLogical, used to initialize the 'coerce' field
optionalLogical, used to initialize the 'optional' field
clone()
The objects of this class are cloneable with this method.
BytesClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects in this class are collections of callbacks functions
usually related to certain events. The function CallbackDispachter can be
used as an constructor
CallbackDispatcher(...)CallbackDispatcher(...)
... |
Arguments passed to the inializer |
CallbackDispatcher(): The constructor function, returns an Object of Class "CallbackDispatcherClass"
register()
Register a function as a callback
CallbackDispatcherClass$register(handler, remove)
handlerA function
removeA logical value; whether the function is added or removed from the list of callbacks
clear()
Remove all callback functions
CallbackDispatcherClass$clear()
suspend_handlers()
Suspend registered callback functions
CallbackDispatcherClass$suspend_handlers()
activate_handlers()
(Re-)activate registered callback functions
CallbackDispatcherClass$activate_handlers()
run()
Run all registered callback functions
CallbackDispatcherClass$run(...)
...Aruments passed on to the handler functions
clone()
The objects of this class are cloneable with this method.
CallbackDispatcherClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor function to create checkbox widgets
CheckboxStyle(...) Checkbox(...)CheckboxStyle(...) Checkbox(...)
... |
Arguments passed to the inializer |
CheckboxStyle(): The constructor for checkbox widgets
Checkbox(): The constructor for checkbox styles
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> CheckboxStyle
_model_nameName of the Javascript model in the frontend
backgroundThe background color
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
CheckboxStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> Checkbox
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
descriptionA button description
disabledBoolean, whether the button is disabled
indentBoolean, whether to indent the checkbox
valueBoolean, whether the box is checked
styleThe checkbox style, an object of class "CheckboxStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
CheckboxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and constructor function to create color picker widgets
ColorPicker(...)ColorPicker(...)
... |
Arguments passed to the inializer |
ColorPicker(): The constructor for color-picker widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> ColorPicker
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
conciseBoolean, whether the a short version should be shown
disabledBoolean, whether the button is disabled
valueUnicode string, the color value
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
ColorPickerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A Color String Trait
A Color String Trait
Color(...)Color(...)
... |
Arguments passed to the trait instance initializer |
RKernel::Trait -> RKernel::Unicode -> Color
optionalLogical value, whether a length-zero value is allowed.
validator()
Check the value assigned to the traitlet.
ColorTraitClass$validator(value)
valueThe value assigned to the traitlet.
clone()
The objects of this class are cloneable with this method.
ColorTraitClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This R6 Class provides for bidirectional communication between the R Kernel and the Jupyter frontend, e.g. a Jupyter notebook
Comm(...)Comm(...)
... |
Arguments passed to the inializer |
Objects of this class are used to communicate to the frontend via custom messages.
Comm(): A constructor function for objects of class "CommClass"
idA character string, the comm id
target_nameA character string, the target
handlersA list of handler functions
dataA list of data
new()
Initialize a 'Comm' object
CommClass$new(target_name, id = uuid(), handlers = list())
target_nameA string, the name of the target
idA string, the comm id
handlersA list of handler functions
kernelThe relevant kernel
open()
Open a comm
CommClass$open(data, metadata = emptyNamedList, buffers = NULL)
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
send()
Send data through a comm
CommClass$send(data, metadata = emptyNamedList, buffers = NULL)
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
close()
Close a comm
CommClass$close( data = emptyNamedList, metadata = emptyNamedList, buffers = NULL )
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
clone()
The objects of this class are cloneable with this method.
CommClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects of this class are used internally to manage comms, they are not meant to be used by end-users.
CommManager(...)CommManager(...)
... |
Arguments passed to the inializer |
See the documentation of Jupyter custom messages.
CommManager(): A constructor for objects in the 'CommManagerClass'
commsA list of Comms.
add_handlers()
Add a handler for a comm target
CommManagerClass$add_handlers(target_name, handlers)
target_nameA string, the name of the target.
handlersA named list of handlers
remove_handlers()
Remove the handlers of a comm target
CommManagerClass$remove_handlers(target_name)
target_nameA string, the name of the target
has_handlers()
Check if handlers for a target exist
CommManagerClass$has_handlers(target_name)
target_nameA string, the name of the target
get_handlers()
Get the handlers for a target
CommManagerClass$get_handlers(target_name)
target_nameA string, the name of the target
get_comms()
Get all comms or all comms related to a target
CommManagerClass$get_comms(target_name = NULL)
target_nameA string, the name of the target or NULL. If NULL,
new_comm()
Create a new comm related to a target
CommManagerClass$new_comm(target_name)
target_nameA string, the name of the target
handle_open()
Handle a 'comm open' request from the frontend
CommManagerClass$handle_open(target_name, id, data)
target_nameA string, the name of the target
idA string, the comm id
dataData sent by the frontend
handle_close()
Handle a 'comm close' request from the frontend
CommManagerClass$handle_close(id, data)
idA string, the comm id
dataData sent by the frontend
handle_msg()
Handle a comm message from the frontend
CommManagerClass$handle_msg(id, data)
idA string, the comm id
dataData sent by the frontend
has()
Check whether the comm manager has info about comm with an id
CommManagerClass$has(id)
idA string, possibly a comm id
send()
Send data to the frontend
CommManagerClass$send(id, data, metadata = emptyNamedList, buffers = NULL)
idA string, the comm id
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
send_open()
Send an 'open' request to the frontend
CommManagerClass$send_open( id, target_name, data, metadata = emptyNamedList, buffers = NULL )
idA string, the comm id
target_nameA string, the name of the target
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
send_close()
Send an 'close' request to the frontend
CommManagerClass$send_close( id, data = emptyNamedList, metadata = emptyNamedList, buffers = NULL )
idA string, the comm id
dataA named list
metadataA named list
buffersA list of raw vectors or NULL
list_targets()
Return a list of targets
CommManagerClass$list_targets()
clone()
The objects of this class are cloneable with this method.
CommManagerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This is a base class for widgets that use the 'controls' module.
RKernel::HasTraits -> RKernel::Widget -> CoreWidget
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_view_moduleVersion of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
CoreWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Send CSS code in a character string or a text file to the frontend.
CSS(text, file)CSS(text, file)
text |
A character string with CSS styling information |
file |
Path of a file with CSS styling information |
Objects of class "dataTable" provide HTML tables with interactive controls powered by the DataTable Javascript library.
dataTable(x, ...) ## Default S3 method: dataTable(x, ...) ## S3 method for class 'data.frame' dataTable(x, ...) ## S3 method for class 'data.set' dataTable(x, ...) ## S3 method for class 'importer' dataTable(x, ...) ## S3 method for class 'dataTable' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), update = FALSE )dataTable(x, ...) ## Default S3 method: dataTable(x, ...) ## S3 method for class 'data.frame' dataTable(x, ...) ## S3 method for class 'data.set' dataTable(x, ...) ## S3 method for class 'importer' dataTable(x, ...) ## S3 method for class 'dataTable' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), update = FALSE )
x |
A "dataTable" object |
... |
Other arguments passed to the initialization method of 'dataTableClass' R6 objects |
metadata |
A list of metadata strings |
id |
An ID string |
update |
A logical value; whether an existing display item will be updated |
dataTable(default): Default method
dataTable(data.frame): data.frame method
dataTable(data.set): data.set method
dataTable(importer): importer method
display_data(dataTable): dataTable method for display_data
dataTable(): A dataTable constructor
wA container widget or NULL
pageNumber of the current page
mWidth of the object divided by 'size'
rRemainder of the widht of the object divided by 'size'
sizeNumber of columns in each group for horizontal paging
iframeAn <iframe> container or NULL
b_leftButton to scroll left
b_rightButton to scroll right
b_firstButton to scroll to the first group of columns
b_lastButton to scroll to the last group of columns
dtHTML code for the visible table
objThe tabular object being dispayed
labelA string label that shows the columns being displayed
styleA string with CSS styling
navigatorA container widget that contains the navigator buttons
new()
Initialize the DataTable
dataTableClass$new(obj, size = 50, ...)
objThe object to be displayed
sizeAn integer, the number of columns pre-formatted on each page.
...Other arguments, ignored
show_columns()
Show which columns are displayed
dataTableClass$show_columns()
page_left()
Go one page to the left
dataTableClass$page_left()
page_right()
Go one page to the right
dataTableClass$page_right()
page_first()
Go to the first page (to the left)
dataTableClass$page_first()
page_last()
Go to the last page (to the right)
dataTableClass$page_last()
draw()
Draw the iframe with the data table contents
dataTableClass$draw()
clone()
The objects of this class are cloneable with this method.
dataTableClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and constructor of date traitlets.
Date(...) ## S3 method for class 'DateClass' as.Date(x, ...)Date(...) ## S3 method for class 'DateClass' as.Date(x, ...)
... |
Other arguments. |
x |
A date traitlet. |
RKernel::Trait -> DateClass
valueA date.
coerceLogical value, whether assignments to the value field should be coerced to the appropriate type.
validator()
Check the value assigned to the traitlet.
DateClass$validator(value)
valueThe value assigned to the traitlet.
new()
Initialize the traitlet.
DateClass$new( initial = as.Date(integer(0)), year = integer(0), month = integer(0), day = integer(0), coerce = TRUE )
initialAn optional Date object or date string
yearAn optional integer
monthAn optional integer
dayAn optional integer
coerceAn optional logical value
clone()
The objects of this class are cloneable with this method.
DateClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and constructor function for date picker widgets
DatePicker(...)DatePicker(...)
... |
Arguments passed to the inializer |
DatePicker(): A constructor for dat picker widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> DatePicker
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
valueThe date
disabledBoolean, whether the user can make changes
minMinimum selectable date
maxMaximum selectable date
stepDate step used for the picker in days
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Check wether "value" is within range.
DatePickerClass$validate_value(value)
valueA value
validate_min()
Validate the "min" field after assignment.
DatePickerClass$validate_min(min)
minA minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
DatePickerClass$validate_max(max)
maxA maximum value, should be an integer number.
new()
DatePickerClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
DatePickerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and constructor of datetime traitlets.
Datetime(...) Time(...)Datetime(...) Time(...)
... |
Arguments that are passed to the initialize method of 'TimeClass' |
RKernel::Trait -> DatetimeClass
valueA date.
coerceLogical value, whether assignments to the value field should be coerced to the appropriate type.
validator()
Check the value assigned to the traitlet.
DatetimeClass$validator(value)
valueThe value assigned to the traitlet.
new()
Initialize the traitlet.
DatetimeClass$new(initial = as.POSIXct(integer(0)), coerce = TRUE)
initialAn optional POSIXct object or an object coercive into such an object
coerceAn optional logical value
clone()
The objects of this class are cloneable with this method.
DatetimeClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and constructor function for datetime picker widgets
DatetimePicker(...) NaiveDatetimePicker(...)DatetimePicker(...) NaiveDatetimePicker(...)
... |
Arguments passed to the inializer |
DatetimePicker(): A constructor for dat picker widgets
NaiveDatetimePicker(): A constructor for dat picker widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> DatetimePicker
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
valueThe date and time. If non-zero length, must have valid timezone info.
disabledBoolean, whether the user can make changes
minMinimum selectable date and time. If non-zero length, must have valid timezone info.
maxMaximum selectable date and time. If non-zero length, must have valid timezone info.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_tz()
Check whether time zone is valid.
DatetimePickerClass$validate_tz(value)
valueA value
validate_value()
Check wether "value" is within range.
DatetimePickerClass$validate_value(value)
valueA date and time to be checked for validity
validate_min()
Validate the "min" field after assignment.
DatetimePickerClass$validate_min(min)
minA minimum date and time to be checked for validity
validate_max()
Validate the "max" field after assignment.
DatetimePickerClass$validate_max(max)
maxA maximum date and time to be checked for validity
new()
DatetimePickerClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
DatetimePickerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::DatetimePicker -> NaiveDatetimePicker
_model_nameName of the Javascript model in the frontend
valueThe date and time. If non-zero length, must have valid timezone info.
minMinimum selectable date and time. If non-zero length, must have valid timezone info.
maxMaximum selectable date and time. If non-zero length, must have valid timezone info.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::DatetimePicker$validate_max()RKernel::DatetimePicker$validate_min()validate_tz()
Check whether time zone is valid.
NaiveDatetimePickerClass$validate_tz(value)
valueA value
validate_value()
Check wether "value" is within range.
NaiveDatetimePickerClass$validate_value(value)
valueA date and time to be checked for validity
new()
NaiveDatetimePickerClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
NaiveDatetimePickerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects of this class contain the CSS styling of description widgets
DescriptionStyle(...)DescriptionStyle(...)
... |
Arguments passed to the inializer |
DescriptionStyle(): A Constructor Function for "DescriptionStyle" objects
RKernel::HasTraits -> RKernel::Widget -> DescriptionStyle
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
_view_moduleVersion of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
description_widthWidth of the description
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
DescriptionStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects of this class have an optional description and a description tooltip field
DescriptionWidget(...)DescriptionWidget(...)
... |
Arguments passed to the inializer |
DescriptionWidget(): A Constructor Function for "DescriptionWidget" objects
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> DescriptionWidget
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_view_moduleVersion of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
_model_nameName of the Javascript model in the frontend
descriptionAn optional description string
description_tooltipAn optional description tooltip
tooltipAn optional description tooltip
description_htmlBoolean, whether HTML is allowed in the description
styleA "DescriptionStyle" object
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()clone()
The objects of this class are cloneable with this method.
DescriptionWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor of dictionary trait(let)s. These are lists with unique element names.
Dict(...)Dict(...)
... |
Arguments that are passed to the initialize method of 'DictClass' |
RKernel::Trait -> RKernel::List -> Dict
validator()
A function that checks the validity of an assigned value, i.e. whether the assigned value is a list with unique names
DictClass$validator(value)
valueA value to be assigned as the traitlet value
clone()
The objects of this class are cloneable with this method.
DictClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects of class "dictionary" behave similar to dictionaries. They can contain any other kind of objects, but like with Python dictionaries, only scalar indices are allowed. Unlike with Python dictionaries, numeric indices can be used well as character indices.
dictionary(...) ## S3 method for class 'dictionary' x[i] ## S3 replacement method for class 'dictionary' x[i] <- value ## S3 method for class 'dictionary' print(x, force = FALSE, ...)dictionary(...) ## S3 method for class 'dictionary' x[i] ## S3 replacement method for class 'dictionary' x[i] <- value ## S3 method for class 'dictionary' print(x, force = FALSE, ...)
... |
Arbitrary objects. Should be tagged, yet currently name tags are not yet checked for. |
x |
A dictionary object |
i |
A scalar integer or character string |
value |
An arbitrary object |
force |
A logical scalar, if TRUE, each element of the dictionary is printed, if FALSE, just a brief summary is printed. |
[: Get an element from a dictionary
`[`(dictionary) <- value: Set an element in a dictionary
print(dictionary): Print a dictionary
dictionary(): A dictionary constructor
Sends a 'display_data' message to the frontend. Allows users to create rich display of R objects.
display(...)display(...)
... |
Arguments passed to 'display_data' methods |
A generic function that prepares R objects for display using display()
## S3 method for class 'Widget' display_data(x, ..., metadata = emptyNamedList, id = uuid(), update = FALSE) display_data(x, ...) ## Default S3 method: display_data( x, ..., data, metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'htmlwidget' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'display_data' display_data(x, ...) ## S3 method for class 'update_display_data' display_data(x, ...) ## S3 method for class 'svg' display_data(x, ...) ## S3 method for class 'display_data' update(object, ...) ## S3 method for class 'data.frame' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'data.set' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'importer' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'descriptions' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'matrix' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'html_elem' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'shiny.tag' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'shiny.tag.list' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'iframe' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), update = FALSE ) ## S3 method for class 'htmlTable' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'tableHTML' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'help_files_with_topic' display_data( x, ..., id = UUIDgenerate(), update = FALSE, embedded = FALSE, include_button = TRUE ) ## S3 method for class 'hsearch' display_data(x, ..., id = UUIDgenerate(), update = FALSE)## S3 method for class 'Widget' display_data(x, ..., metadata = emptyNamedList, id = uuid(), update = FALSE) display_data(x, ...) ## Default S3 method: display_data( x, ..., data, metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'htmlwidget' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'display_data' display_data(x, ...) ## S3 method for class 'update_display_data' display_data(x, ...) ## S3 method for class 'svg' display_data(x, ...) ## S3 method for class 'display_data' update(object, ...) ## S3 method for class 'data.frame' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'data.set' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'importer' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'descriptions' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'matrix' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'html_elem' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'shiny.tag' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'shiny.tag.list' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'iframe' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), update = FALSE ) ## S3 method for class 'htmlTable' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'tableHTML' display_data( x, ..., metadata = emptyNamedList, id = UUIDgenerate(), update = FALSE ) ## S3 method for class 'help_files_with_topic' display_data( x, ..., id = UUIDgenerate(), update = FALSE, embedded = FALSE, include_button = TRUE ) ## S3 method for class 'hsearch' display_data(x, ..., id = UUIDgenerate(), update = FALSE)
x |
An object |
... |
Optional arguments tagged by mime types with mime data |
metadata |
A list with named elements, containing metadata |
id |
An identifier string |
update |
A logical value, whether a new display item should be created or an existing one should be updated |
data |
A list with named elements, containing mime data |
object |
An object of class "display_data" |
embedded |
A logical value, whether the help page should be shown embedded in the Jupyter notebook |
include_button |
A logical value, whether to include a button that opens a new tab for the help page. |
An object of class "display_data"
display_data(Widget): Method for jupyter widgets
display_data(default): Default method
display_data(htmlwidget): S3 method for html widgets
display_data(display_data): S3 method for "display_data" objects
display_data(update_display_data): S3 method for "update_display_data" objects
display_data(svg): S3 method for "svg" objects
display_data(data.frame): S3 method for class 'data.frame'
display_data(data.set): S3 method for class 'data.set'
display_data(importer): S3 method for class 'importer'
display_data(descriptions): S3 method for class 'descriptions'
display_data(matrix): S3 method for matrices
display_data(html_elem): S3 method for "html_elem" objects (see html)
display_data(shiny.tag): S3 methods for "shiny.tab" objects
display_data(shiny.tag.list): S3 methods for "shiny.tab.list" objects
display_data(iframe): S3 methods for "iframe" objects
display_data(htmlTable): S3 methods for "htmlTable" objects
display_data(tableHTML): S3 methods for "tableHTML" objects
display_data(help_files_with_topic): S3 method for help pages
display_data(hsearch): S3 method for results of 'help.search()'
update(display_data): "update" method for "display_data" objects
This function returns the id of an object created by
display_data() or update_display_data().
display_id(x) ## S3 method for class 'display_data' display_id(x) ## S3 method for class 'update_display_data' display_id(x)display_id(x) ## S3 method for class 'display_data' display_id(x) ## S3 method for class 'update_display_data' display_id(x)
x |
An object of class "display_data" or "update_display_data" |
a character string with the id.
display_id(display_data): S3 method for "display_data" objects
display_id(update_display_data): S3 method for "update_display_data" objects
This is a base class for all widgets that are supposed to be part of the document object model
DOMWidget(...)DOMWidget(...)
... |
Arguments passed to the inializer |
DOMWidget(): The DOM widget constructor function
RKernel::HasTraits -> RKernel::Widget -> DOMWidget
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_model_nameName of the Javascript model in the frontend
_dom_classesA set of character strings that indicate the DOM classes the widget is assigned to
layoutThe layout, a "LayoutClass" Widget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()add_class()
Add a class attribute to the DOM element
DOMWidgetClass$add_class(className)
classNameName of the class attribute
remove_class()
Remove a class attribute to the DOM element
DOMWidgetClass$remove_class(className)
classNameName of the class attribute
has_class()
Check whether the DOM element has a class attribute
DOMWidgetClass$has_class(className)
classNameName of the class attribute
clone()
The objects of this class are cloneable with this method.
DOMWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This function returns a widget that allows to browse within an environment
envBrowser( pos = -1, name = NULL, envir, parent = NULL, all.names = FALSE, pattern = NULL, mode = "any" )envBrowser( pos = -1, name = NULL, envir, parent = NULL, all.names = FALSE, pattern = NULL, mode = "any" )
pos |
integer indicating the |
name |
optional name indicating a position in the search path, see
|
envir |
environment to use, see |
parent |
an optional parent environment. |
all.names |
logical; if true names starting with '.' are not omitted,
see |
pattern |
an optional pattern of names to restrict browsing to, see
|
mode |
an optional string indicating the mode of objects to which
browsing is restricted, see |
Objects of this class are used internally to manage events, they are not meant to be used by end-users.
EventManager(...)EventManager(...)
... |
Arguments passed to the inializer |
EventManager(): The constructor function, returns an Object of Class "EventManagerClass"
new()
Initialize an event manager
EventManagerClass$new(type)
typeA string, the type of event (e.g. "print")
send()
Send an event
EventManagerClass$send(event, ...)
eventA string, the name of an event
...Other arguments, sent to the event handler(s)
on()
Install a handler for an event
EventManagerClass$on(event, handler, remove = FALSE)
eventA string, the name of an event
handlerA function
removeA logical value, whether the handler is to be removed
activate()
Activate handlers
EventManagerClass$activate(event = NULL, all = TRUE)
eventA string, the name of an event, ignored if 'all' is TRUE.
allA logical value, if TRUE, all handlers that belong to the event type of the event manager are activated.
suspend()
Suspend handlers
EventManagerClass$suspend(event = NULL, all = TRUE)
eventA string, the name of an event, ignored if 'all' is TRUE.
allA logical value, if TRUE, all handlers that belong to the event type of the event manager are suspended.
clear()
Clear (i.e. remove) handlers for an event
EventManagerClass$clear(event)
eventA string, the name of an event
resume()
Resume (i.e. reactivate) an event handler
EventManagerClass$resume()
has()
Check whether the event manager has handlers for the given events
EventManagerClass$has(events)
eventsA character vector with names of events
clone()
The objects of this class are cloneable with this method.
EventManagerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Class and constructor for file upload widgets
FileUpload(...)FileUpload(...)
... |
Any arguments used to initialize the fields of the object |
FileUpload(): The FileUpload constructor function
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> FileUpload
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
acceptA character string that defineds the accepted file type. If empty, all files are accepted.
multipleA Boolean traitlet, whether multiple files are accepted.
disabledA Boolean traitlet, whether the widget is disabled.
iconA character string, the font-awesome without the 'fa-' prefix.
button_styleThe string that describes the button style
styleThe button style, an object of class "ButtonStyleClass".
errorA string with an error message, if applicable.
valueThe uploaded data.
filenameA character string, the name of the uploaded file.
contentsA raw vector with the contents of the uploaded file
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()new()
A generic initializer function
FileUploadClass$new(description = "Upload", ...)
descriptionThe button description
...Any arguments used to initialize the fields of the object
handle_buffers()
Handle buffers in message
FileUploadClass$handle_buffers(msg)
msgA comm message
clone()
The objects of this class are cloneable with this method.
FileUploadClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Adapt an localhost URL so that it works from behind Jupyterhub
fix_localhost(url)fix_localhost(url)
url |
A character string |
The function 'Fixed' returns ist argument
marked with a class attribute "Fixed", so that it
is not made into a widget when passed to Interactive
Fixed(x)Fixed(x)
x |
An object. |
A class and a constructor function to create floating point vector trait(let)s.
Float(...) ## S3 method for class 'Float' as.integer(x, ...) ## S3 method for class 'Float' as.numeric(x, ...)Float(...) ## S3 method for class 'Float' as.integer(x, ...) ## S3 method for class 'Float' as.numeric(x, ...)
... |
Other arguments. |
x |
A floating point traitlet. |
RKernel::Trait -> Float
valueA numeric vector.
optionalLogical value, whether a length-zero value is allowed.
coerceLogical value, whether assignments to the value field should be coerced to the appropriate type.
lengthInteger number, the length the value should have.
validator()
Check the value assigned to the traitlet.
FloatClass$validator(value)
valueThe value assigned to the traitlet.
new()
Initialize the traitlet.
FloatClass$new( initial = numeric(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initialA numeric vector, the initial value for the traitlet.
coercecoerce Logical value, whether assignments to the value field should be coerced to the appropriate type.
optionalLogical value, whether a length-zero value is allowed.
lengthInteger number, the length the value should have.
clone()
The objects of this class are cloneable with this method.
FloatClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating point numbers.
FloatText(value = 0, step = 0.1, ...)FloatText(value = 0, step = 0.1, ...)
value |
Initial value of the floating point number. |
step |
Increment by which the number is increased or decreased by the text field controls. |
... |
Other arguments. |
The function FloatText creates objects of the R6 Class
"FloatTextClass", which in turn have the S3 class attribute "FloatText".
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::FloatWidget -> FloatText
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
disabledA Boolean traitlet, whether the text widget is disabled.
continuous_updateA Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
stepA Float traitlet, a step size by which the value is incremented or decremented if the arrows are clicked.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
FloatTextClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate floating point numbers
FloatWidget(value, ...)FloatWidget(value, ...)
value |
The floating point value |
... |
Other arguments, passed to the superclass initializer |
The function FloatWidget creates objects of the R6 Class
"FloatWidgetClass", which in turn have the S3 class attribute "FloatWidget"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> FloatWidget
valueA Float traitlet
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
FloatWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Provide completion for code given at point.
get_completions(code, cursor_pos)get_completions(code, cursor_pos)
code |
A character string with code to be checked for completions. |
cursor_pos |
An integer, the current position of the cursor. |
Check whether a handler exists for URLs that have 'slug' as path component.
has_http_handler(slug)has_http_handler(slug)
slug |
The first part (slug) of the URL to be handled |
Objects in class HasTraits have traits as components
that are correctly initialized using delayed construction with
the TraitInstance function.
callThe generating call
traitsA list of traits
suspendedLogical value; whether notifying observers is suspended.
observersA list of observers, i.e. callback functions called by
the notify method.
new()
Initialize an object
HasTraits$new(...)
...Initializsing values
notify()
Notify observers about a trait being set to a value.
HasTraits$notify(tn, value)
tnA string, the name of the trait.
valueThe value to which the trait is set.
observe()
Install or remove an observer function.
HasTraits$observe(tn, observer, remove = FALSE)
tnA string, the name of a trait.
observerA callback function, which should take three arguments, (1) the trait name, (2) the object that has the trait, (3)
removeA logical value, indicates whether the observer is to be removed or added
validate()
Install or remove the validator function of a trait.
HasTraits$validate(tn, validator, remove = FALSE)
tnA string, the name of a trait.
validatorA callback function
removeA logical value, indicates whether the validator is to be removed or added
clone()
The objects of this class are cloneable with this method.
HasTraits$clone(deep = FALSE)
deepWhether to make a deep clone.
A variant of help.start that works when called from inside a
Jupyter notebook.
help.start( update = FALSE, gui = "irrelevant", browser = getOption("browser"), remote = NULL )help.start( update = FALSE, gui = "irrelevant", browser = getOption("browser"), remote = NULL )
update |
A logical value. This formal argument exists for compatibility reasons only. |
gui |
A character string. This formal argument exists for compatibility reasons only. |
browser |
A character string. This formal argument exists for compatibility reasons only. |
remote |
A character string. This formal argument exists for compatibility reasons only. |
These request can be used to get the value of an R object, usually a data frame.
http_data(path, query, ...)http_data(path, query, ...)
path |
The url, excluding the hostname and port, but including the slug "data" and the name of an R object. |
query |
The query string translated into a character vector. The value of the "format" query parameter should be one of "deparse", "str", "raw", "cat", "json", or "print". The query parameters "rows" and "cols" can be used to select rows and columns. |
... |
Any other arguments, ignored. |
## Not run: browseURL(paste0(httpd_url(),"/data/iris?rows=1-5&format=json")) ## End(Not run)## Not run: browseURL(paste0(httpd_url(),"/data/iris?rows=1-5&format=json")) ## End(Not run)
A GET request from URL 'http://localhost:XYZ/echo' will just return the request.
http_echo(path, query, ...)http_echo(path, query, ...)
path |
The url, excluding the hostname and port. Will be "/echo". |
query |
The query string translated into a character vector. |
... |
Any other arguments, ignored. |
These request can be used to have R evaluate an expression
http_eval(path, query, ...)http_eval(path, query, ...)
path |
The url, excluding the hostname and port. |
query |
The query string translated into a character vector. The query argument named "expr" will be parsed and evaluated in a temporary environment. The result of evaluated expression will be shown in a format specified by the "format" query parameter. The value of the "format" query parameter should be one of "deparse", "str", "raw", "cat", "json", or "print". |
... |
Any other arguments, ignored. |
## Not run: browseURL(paste0(httpd_url(),"/eval?expr=Sys.time()&format=json")) ## End(Not run)## Not run: browseURL(paste0(httpd_url(),"/eval?expr=Sys.time()&format=json")) ## End(Not run)
Send a GET request to an URL and read the response.
http_get(x)http_get(x)
x |
A character string with an URL. |
http_get(paste0(httpd_url(),"/data/iris?rows=1-5&format=json"))http_get(paste0(httpd_url(),"/data/iris?rows=1-5&format=json"))
If requests are proxied and the HTTP server of the R session listens at port '<PORT>' then the appropriate URL is of the form '<JUPYTERHUB_SERVICE_PREFIX>/proxy/<PORT>' in addition to (or instead of) 'http://localhost:<PORT>'.
http_is_proxied()http_is_proxied()
This is intended to be used internally.
http_log(msg)http_log(msg)
msg |
A character string |
Handle a generic message request sent via getting from an url with the slug 'msg'.
http_msg(path, query, ...)http_msg(path, query, ...)
path |
The url, excluding the hostname and port, but including the slug "data" and the name of an R object. |
query |
The query string translated into a character vector. |
... |
Any other arguments, ignored. |
Get the port of the HTTP server.
httpd_port()httpd_port()
Get the port the HTTP server listens to.
httpd_url()httpd_url()
Display the contents of a webpage or other HTML content by including output using an [iframe](https://html.spec.whatwg.org/multipage/iframe-embed-object.html).
IFrame(url, width = "100%", height = "70ex", class = NULL, srcdoc = FALSE)IFrame(url, width = "100%", height = "70ex", class = NULL, srcdoc = FALSE)
url |
A character string, the URL of the content to be included |
width |
A character string that specifies the width of the iframe |
height |
A character string that specifies the width of the iframe |
class |
An optional character string with DOM classes to be assigned to the iframe. |
srcdoc |
Logical, whether to use a 'src' (FALSE, the default) or 'srcdoc' attribute. |
install the R Kernel
install(...) installspec( user = TRUE, prefix = NULL, kernel_name = "rkernel", display_name = "R", env = NULL )install(...) installspec( user = TRUE, prefix = NULL, kernel_name = "rkernel", display_name = "R", env = NULL )
... |
Arguments passed on to |
user |
Logical, whether to install the kernel in the user's home directory |
prefix |
NULL or a character string with a path prefix |
kernel_name |
String; the name of the kernel. To be used e.g. as the '–kernel=' argument for the CLI call 'jupyter console' |
display_name |
String; the name as it appears in the Jupyter web interface |
env |
A list or NULL; optional environmental variables
for the R kernel process. For example, to get single-threaded
open-blas use
" |
installspec(): Install the R Kernel spec
A class and a constructor function to create integer vector trait(let)s.
Integer(...) ## S3 method for class 'Integer' as.integer(x, ...) ## S3 method for class 'Integer' as.numeric(x, ...) ## S3 method for class 'Integer' to_json(x, ...)Integer(...) ## S3 method for class 'Integer' as.integer(x, ...) ## S3 method for class 'Integer' as.numeric(x, ...) ## S3 method for class 'Integer' to_json(x, ...)
... |
Other arguments. |
x |
An integer traitlet. |
RKernel::Trait -> Integer
valueAn integer vector.
optionalLogical value, whether a length-zero value is allowed.
coerceLogical value, whether assignments to the value field should be coerced to the appropriate type.
lengthInteger number, the length the value should have.
validator()
Check the value assigned to the traitlet.
IntegerClass$validator(value)
valueThe value assigned to the traitlet.
new()
Initialize the traitlet.
IntegerClass$new( initial = integer(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initialAn integer vector, the initial value for the traitlet.
coercecoerce Logical value, whether assignments to the value field should be coerced to the appropriate type.
optionalLogical value, whether a length-zero value is allowed.
lengthInteger number, the length the value should have.
clone()
The objects of this class are cloneable with this method.
IntegerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A variety of functions to create interactive function calls
interactive_output( FUN, controls, out, button = NULL, continuous_update = TRUE, autorun = TRUE, clear = FALSE, mime_type = "text/plain" ) mkWidgets(...) Interactive( FUN, ..., continuous_update = TRUE, append_output = FALSE, use_display = TRUE ) interact( FUN, ..., continuous_update = TRUE, append_output = FALSE, use_display = TRUE )interactive_output( FUN, controls, out, button = NULL, continuous_update = TRUE, autorun = TRUE, clear = FALSE, mime_type = "text/plain" ) mkWidgets(...) Interactive( FUN, ..., continuous_update = TRUE, append_output = FALSE, use_display = TRUE ) interact( FUN, ..., continuous_update = TRUE, append_output = FALSE, use_display = TRUE )
FUN |
A function to called with arguments manipulated using interactive widgets. |
controls |
A list of controlling widgets, usually created with the
function |
out |
An output widget, i.e. a widget in class "OutputWidget" |
button |
An (optional) button widget; when clicked, the function
|
continuous_update |
A logical value, if |
autorun |
Logical, whether the function |
clear |
Logical, whether |
mime_type |
A character string that specifies the mime type as which the
return value of |
... |
Named arguments, transformed into widgets using the generic
function |
append_output |
Logical, whether existing output should be appended to or overwritten. |
use_display |
Logical, whether the display mechanism is used internally for output streams. |
An R6 class and a constructor function for the creation of widgets that can be used to manipulate integer numbers
IntText(value = 0, step = 1, ...)IntText(value = 0, step = 1, ...)
value |
Initial value of the integer number |
step |
Increment by which the number is increased or decreased by the text field controls |
... |
Arguments passed to the superclass constructor |
The function IntText creates objects of the R6 Class
"IntTextClass", which in turn have the S3 class attribute "IntText"
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::IntWidget -> IntText
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
disabledA Boolean traitlet, whether the text widget is disabled.
continuous_updateA Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
stepAn Integer traitlet, a step size by which the value is incremented or decremented if the arrows are clicked.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
IntTextClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and a constructor function for the creation of widgets that can be used to manipulate integer numbers.
IntWidget(value, ...)IntWidget(value, ...)
value |
The integer value. |
... |
Other arguments, passed to the superclass initializer. |
The function IntWidget creates objects of the R6 Class
"IntWidgetClass", which in turn have the S3 class attribute "IntWidget".
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> IntWidget
valueA Integer traitlet.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
IntWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Send Javascript code in a character string or a text file to the frontend.
Javascript(text, file, as_tag = FALSE)Javascript(text, file, as_tag = FALSE)
text |
A character string with Javascript code |
file |
Path of a file with Javascript code |
as_tag |
Logical, whether to return a '<script>' tag |
An S3 object of class "display_data" with mime data of type "application/javascript"
An object of this class handles the low-level communication with the Jupyter frontend or kernel manager. There should only be one object of this class in existence.
sessionSee RKernelSession.
replAn RSessionAdapter for handling input and output
runnerAn RSessionRunner
DAPServerThe current DAP server
erroredLogical, whether an error occurred in the R session
stop_on_errorLogical, whether running a notebook should be stopped in case of an error in the R session.
new()
Initialize the kernel
Kernel$new(conn_info)
conn_infoA list with the connection info from the front-end
start()
Start the R session and other components
Kernel$start()
run_code()
Run some code (for testing purposes)
Kernel$run_code(code, debug = FALSE)
codeSome code
debugLogical, whether running a code cell should occur under debugging conditions
run()
Run the kernel.
Kernel$run()
poll_and_respond()
A single iteration of the kernel loop
Kernel$poll_and_respond(
poll_timeout = getOption("rkernel_poll_timeout", 10L),
drop = NULL
)poll_timeoutAn integer
dropLogical, whether execute requests should be dropped
clear_output()
Clear the current output cell in the frontend.
Kernel$clear_output(wait)
waitLogical value, whether to wait until output is cleared.
stream()
Stream text to the frontend.
Kernel$stream(text, stream)
textText to be sent to the frontend
streamA string to select the stream – either "stout" or "stderr"
stdout()
Stream text to the frontend via 'stdout' stream.
Kernel$stdout(text)
textText to be sent to the frontend.
stderr()
Stream text to the frontend via 'stderr' stream.
Kernel$stderr(text)
textText to be sent to the frontend.
readline()
Ask the frontend for a line of text input.
Kernel$readline(prompt = "")
promptThe prompt, a character string.
execute_result()
Send execution results to the frontend
Kernel$execute_result(data, metadata = emptyNamedList)
dataExecution result in rich format
metadataA list with metadata
display_send()
Send rich format data to the frontend
Kernel$display_send(msg)
msgA list with the appropriate structure. [TODO]
send_error()
Send an error message and traceback to the frontend.
Kernel$send_error(name, value, traceback)
nameA string, the error name.
valueA string, the value of the error message.
tracebackA character vector with the traceback.
send_comm()
Send a message via a comm.
Kernel$send_comm(msg)
msgA list containing a comm message.
get_parent()
The parent of the message currently sent.
Kernel$get_parent(channel = "shell")
channelA string, the relevant input channel.
get_conn_info()
Return the current connection info.
Kernel$get_conn_info()
is_child()
Check if the current process is a fork from the original kernel process
Kernel$is_child()
input_request()
Send an input request to the frontend
Kernel$input_request(prompt = "", password = FALSE)
promptA prompt string
passwordLogical value; whether the input should be hidden like in a password dialog
read_stdin()
Read a line from the frontend
Kernel$read_stdin()
send_debug_event()
Send a debug event to the frontend
Kernel$send_debug_event(content)
contentA list, content provided by the debug adapter
save_shell_parent()
Save the parent message on the shell channel
Kernel$save_shell_parent()
restore_shell_parent()
Restore a saved parent message on the shell channel.
Kernel$restore_shell_parent(saved_parent)
saved_parentA saved parent message, a list.
shutdown()
Shut down the kernel and all associated sub-process i.e. the R session and all detached-cell processes.
Kernel$shutdown()
restart()
Restart the R session
Kernel$restart()
restore_execute_parent()
Restore parent message of last execute_request.
Kernel$restore_execute_parent()
handle_yield()
Handle R session's yielding to allow servicing frontend requests
Kernel$handle_yield(timeout)
timeoutNumber of milliseconds to wait for a frontend request
add_service()
Add a function as a service to be run each iteration of the kernel loop.
Kernel$add_service(FUN)
FUNA function.
clone()
The objects of this class are cloneable with this method.
Kernel$clone(deep = FALSE)
deepWhether to make a deep clone.
Send LaTeX code for math in a character string to the frontend to be formatted by MathJax
LaTeXMath(text)LaTeXMath(text)
text |
A character string with LaTeX code for math |
An R6 class and a constructor function for the creation of
a layout widget, which itself is used to manipulate the layout of
a DOMWidget.
Layout(...)Layout(...)
... |
Arguments passed to the inializer |
The function Layout creates objects of the R6 Class
"LayoutClass", which in turn have the S3 class attribute "Layout"
Layout(): The Layout constructor function
RKernel::HasTraits -> RKernel::Widget -> Layout
_view_nameName of the Javascript view in the frontend.
_view_moduleName of the Javascript view module in the frontend.
_view_module_versionVersion of the Javascript view module in the frontend.
_model_nameName of the Javascript model in the frontend.
align_contentAn optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch"
align_itemsAn optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"
align_selfAn optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"
bottomPosition from bottom, an optional string that should, if non-empty, contain a valid CSS dimension
borderAn optional string with a valid CSS border specification
border_topAn optional string with a valid CSS border specification
border_rightAn optional string with a valid CSS border specification
border_bottomAn optional string with a valid CSS border specification
border_leftAn optional string with a valid CSS border specification
displayAn optional string with a valid CSS display property
flexAn optional string with a valid CSS flex property
flex_flowAn optional string with a valid CSS flex_flow property
heightAn optional string with a valid CSS height
justify_contentAn optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around".
justify_itemsAn optional string, if non-empty, one of "flex-start", "flex-end", or "center"
leftPosition from left, an optional string that should, if non-empty, contain a valid CSS dimension
marginAn optional string, if non-empty, should be a valid CSS margin specification
max_heightAn optional string, if non-emtpy, should be a valid CSS dimension
max_widthAn optional string, if non-emtpy, should be a valid CSS dimension
min_heightAn optional string, if non-emtpy, should be a valid CSS dimension
min_widthAn optional string, if non-emtpy, should be a valid CSS dimension
overflowAn optonal string, if non-empty, should be a valid CSS overflow specification
orderAn optional string, if non-empty should contain a number
paddingAn optional string, if non-emtpy should be a valid CSS dimension
rightPosition from right, an optional string, if non-empty, should be a valid CSS dimension
topPosition from top, an optional string, if non-empty, should be a valid CSS dimension
visibilityAn optional string, if non-empty, should be either "visible" or "hidden"
widthAn optional string, if non-empty, should be a valid CSS dimension
object_fitAn optional string, if non-empty, should be one of "contain", "cover", "fill", "scale-down", "none"
object_positionAn optional string, if non-empty, should be a valid CSS object-position specification
grid_auto_columnsAn optional string, if non-empty should be valid CSS code for the grid-auto-columns property
grid_auto_flowAn optional string, if non-empty should be valid CSS code for the grid-auto-flow property
grid_auto_rowsAn optional string, if non-empty should be valid CSS code for the grid-auto-rows property
grid_gapAn optional string, if non-empty should be valid CSS code for the grid-gap property
grid_template_rowsAn optional string, if non-empty should be valid CSS code for the grid-template-rows property
grid_template_columnsAn optional string, if non-empty should be valid CSS code for the grid-template-columns property
grid_template_areasAn optional string, if non-empty should be valid CSS code for the grid-template-areas property
grid_rowAn optional string, if non-empty should be valid CSS code for the grid-row property
grid_columnAn optional string, if non-empty should be valid CSS code for the grid-column property
grid_areaAn optional string, if non-empty should be valid CSS code for the grid-area property
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()observe_border()
Synchronize border traits
LayoutClass$observe_border(nm, self, value)
nmName of the trait (a dummy argument)
selfThe object
valueA CSS string
new()
Initialize an object
LayoutClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
LayoutClass$clone(deep = FALSE)
deepWhether to make a deep clone.
R6 classes and constructor functions for widget layout templates
AppLayout(...) GridspecLayout(...) ## S3 method for class 'GridspecLayout' x[i, j, ..., drop = TRUE] ## S3 replacement method for class 'GridspecLayout' x[i, j] <- value TwoByTwoLayout(...)AppLayout(...) GridspecLayout(...) ## S3 method for class 'GridspecLayout' x[i, j, ..., drop = TRUE] ## S3 replacement method for class 'GridspecLayout' x[i, j] <- value TwoByTwoLayout(...)
... |
Arguments used to initialize the fields |
x |
A GridspecLayout object |
i |
Integer value(s) referring to the row(s) |
j |
Integer value(s) referring to the column(s) |
drop |
Logical, whether the result is a widget or a list with one element if both i an j select a single element |
value |
One or more widgets put at the idicated positions in the grid |
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> RKernel::GridBox -> TemplateBase
grid_gapThe grid-gap CSS attribute
justify_contentThe justify-content CSS attribute
align_itemsThe align-items CSS attribute
widthThe width CSS attribute
heightThe height CSS attribute
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()new()
Initializer
TemplateBaseClass$new(...)
...Arguments used to initialize the fields
clone()
The objects of this class are cloneable with this method.
TemplateBaseClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> RKernel::GridBox -> RKernel::TemplateBase -> AppLayout
headerWidget that appears in the header section
footerWidget that appears in the footer section
left_sidebarWidget that appears as left sidebar
right_sidebarWidget that appears as right sidebar
centerWidget that appears in the center section
pane_widthsUnicode string with CSS widths for the app panes
pane_heightsUnicode string with CSS heights for the app panes
mergeBoolean, whether space of missing widgets chould be merged
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()new()
Initializer method
AppLayoutClass$new(...)
...Arguments, passed on to the superclass initializer
clone()
The objects of this class are cloneable with this method.
AppLayoutClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> RKernel::GridBox -> RKernel::TemplateBase -> GridspecLayout
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()new()
Initializer function
GridspecLayoutClass$new(nrow, ncol, ...)
nrowA positive integer, the number of rows
ncolA positive integer, the number of columns
...Other arguments, passed to the superclass initializer
set_item()
Set widget in grid cells
GridspecLayoutClass$set_item(i, j, value)
iThe rows into which the widget is to be placed
jThe columns into which the widget is to be placed
valueA widget
get_item()
Get widget from grid cells
GridspecLayoutClass$get_item(i, j)
iThe rows where the widget is located
jThe columns where the widget is located
clone()
The objects of this class are cloneable with this method.
GridspecLayoutClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> RKernel::GridBox -> RKernel::TemplateBase -> TwoByTwoLayout
top_leftWidget that appears on the top left
top_rightWidget that appears on the top right
bottom_leftWidget that appears on the bottom left
bottom_rightWidget that appears on the bottom right
mergeBoolean, whether space of missing widgets chould be merged
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()new()
Initializer method
TwoByTwoLayoutClass$new(...)
...Arguments, passed on to the superclass initializer
clone()
The objects of this class are cloneable with this method.
TwoByTwoLayoutClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor function to create list trait(let)s.
List(...)List(...)
... |
Arguments that are passed to the initialize method of 'ListClass' |
RKernel::Trait -> List
valueA list
validator()
A function that checks the validity of an assigned value, i.e. whether the assigned value is a list
ListClass$validator(value)
valueA value to be assigned as the traitlet value
clone()
The objects of this class are cloneable with this method.
ListClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This function is now just an alias for envBrowser.
ls_str( pos = -1, name = NULL, envir, all.names = FALSE, pattern = NULL, mode = "any" )ls_str( pos = -1, name = NULL, envir, all.names = FALSE, pattern = NULL, mode = "any" )
pos |
integer indicating |
name |
an optional name indicating search path position, see |
envir |
the environment to look into |
all.names |
logical value, if FALSE objects with names that start with a dot are ignored |
pattern |
a character string, the pattern of the names of the objects to show |
mode |
a character string, the mode of the objects to be shown |
This function reads the connection info file, creases a "Kernel" object and runs it, i.e. starts the kernel.
main()main()
Classes and constructors to wrap media into widgets
ImageWidget(...) VideoWidget(...) AudioWidget(...)ImageWidget(...) VideoWidget(...) AudioWidget(...)
... |
Any arguments used to initialize the fields of the object |
ImageWidget(): The ImageWidget constructor function
VideoWidget(): The VideoWidget constructor function
AudioWidget(): The AudioWidget constructor function
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> MediaWidget
formatA string, giving the graphics fromat.
valueA Bytes traitlet.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()from_url()
Create media widget from url
MediaWidgetClass$from_url(url, width = NULL, height = NULL)
urlA character string
widthA character string with CSS width specification
heightA character string with CSS height specification
from_file()
Create media widget from file
MediaWidgetClass$from_file(filename)
filenameA character string
on_change()
Add or remove a handler to be called if value is changed.
MediaWidgetClass$on_change(handler, remove = FALSE)
handlerA function that is called when the button is clicked.
removeLogical value, whether the handler is to be removed.
new()
Initialize an object
MediaWidgetClass$new(from_file = NULL, from_url = NULL, ...)
from_fileAn optional character string, name of the file from which to initialize the widget.
from_urlAn optional character string, URL from which to initialize the widget.
...Other arguments, passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
MediaWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::MediaWidget -> ImageWidget
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the graphics fromat.
widthA string, describing the width in CSS language, e.g. "480px".
heightA string, describing the height in CSS language, e.g. "480px".
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::MediaWidget$from_url()RKernel::MediaWidget$initialize()RKernel::MediaWidget$on_change()from_file()
Create image widget from file
ImageWidgetClass$from_file(filename, width = NULL, height = NULL)
filenameA character string
widthA character string with CSS width specification
heightA character string with CSS height specification
clone()
The objects of this class are cloneable with this method.
ImageWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::MediaWidget -> VideoWidget
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the video fromat.
widthA string, describing the width in CSS language, e.g. "480px".
heightA string, describing the height in CSS language, e.g. "480px".
autoplayBoolean, when TRUE the video starts when it is displayed.
loopBoolean, when TRUE the video restarts after finishing.
controlsBoolean, when TRUE then video controls are shown.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::MediaWidget$from_url()RKernel::MediaWidget$initialize()RKernel::MediaWidget$on_change()from_file()
Create image widget from file
VideoWidgetClass$from_file(filename, width = NULL, height = NULL)
filenameA character string
widthA character string with CSS width specification
heightA character string with CSS height specification
clone()
The objects of this class are cloneable with this method.
VideoWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::MediaWidget -> AudioWidget
_view_nameName of the Javascript view in the frontend.
_model_nameName of the Javascript model in the frontend.
formatA string, giving the audio fromat.
autoplayBoolean, when TRUE the video starts when it is displayed.
loopBoolean, when TRUE the video restarts after finishing.
controlsBoolean, when TRUE then video controls are shown.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::MediaWidget$from_file()RKernel::MediaWidget$from_url()RKernel::MediaWidget$initialize()RKernel::MediaWidget$on_change()clone()
The objects of this class are cloneable with this method.
AudioWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A set of functions that can be used to create interactive widgets and to interact with widgets.
mkWidget(x, ...) ## S3 method for class 'integer' mkWidget(x, description = NULL, ...) ## S3 method for class 'numeric' mkWidget(x, description = NULL, ...) ## S3 method for class 'logical' mkWidget(x, description = NULL, ...) ## S3 method for class 'character' mkWidget(x, description = NULL, ...) ## S3 method for class 'Fixed' mkWidget(x, ...) ## S3 method for class 'ValueWidget' mkWidget(x, ...)mkWidget(x, ...) ## S3 method for class 'integer' mkWidget(x, description = NULL, ...) ## S3 method for class 'numeric' mkWidget(x, description = NULL, ...) ## S3 method for class 'logical' mkWidget(x, description = NULL, ...) ## S3 method for class 'character' mkWidget(x, description = NULL, ...) ## S3 method for class 'Fixed' mkWidget(x, ...) ## S3 method for class 'ValueWidget' mkWidget(x, ...)
x |
an object |
... |
Other arguments, passed to more specific methods or ignored |
description |
NULL or a character string that contains a description. |
The function mkWidget is a generic function that creates a
widget that allows to manipulate the arguments of a function that is
called in an interactive widget. This generic function is called by the
function mkWidgets. The function Fixed marks a value
as fixed, so that mkWidget returns it as is.
Classes and constructors to wrap output created by code
OutputWidget(append_output = FALSE, ...) ## S3 method for class 'OutputWidget' with(data, expr, envir = list(), enclos = parent.frame(), clear = TRUE, ...)OutputWidget(append_output = FALSE, ...) ## S3 method for class 'OutputWidget' with(data, expr, envir = list(), enclos = parent.frame(), clear = TRUE, ...)
append_output |
Logical value, whether new output is appended to existing output in the widget or the output is overwritten |
... |
Other arguments, ignored. |
data |
An "OutputWidget" object |
expr |
An expression to evaluate, or a sequence of expression, encapsulated by curly braces. |
envir |
An environment or a list within which 'expr' is evaluated. |
enclos |
An enclosing environment. |
clear |
A logical value, whether clear the output before evaluating 'expr' |
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> OutputWidget
_view_nameName of the Javascript model view in the frontend
_model_nameName of the Javascript model in the frontend
_view_moduleName of the module where the view is defined
_model_moduleName of the Javascript module with the model
_view_module_versionVersion of the module where the view is defined
_model_module_versionVersion of the module where the model is defined
msg_idUnicode string with the id of the last message sent to the frontend.
outputsA list with output strings
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()new()
Initializing function
OutputWidgetClass$new(append_output = TRUE, graphics = FALSE, ...)
append_outputLogical, whether existing output should be appended to or overwritten.
graphicsLogical, whether graphics should be captured and processed within the widget
...Any other arguments, passed to the superclass initializer.
display()
A variant of display for output within a display widget.
OutputWidgetClass$display(...)
...Arguments passed to the function display_data.
clear()
Clear the output
OutputWidgetClass$clear(wait = FALSE)
waitLogical, whether to wait for the frontend to clear the output.
stdout()
Handle output via stdout stream
OutputWidgetClass$stdout(text)
textA character string being output
stderr()
Handle output via stderr stream
OutputWidgetClass$stderr(text)
textA character string being output
handle_msg()
Handle a (JSON) message sent to the output
OutputWidgetClass$handle_msg(msg)
msgThe message, a list
clone()
The objects of this class are cloneable with this method.
OutputWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This function allows to display an R object in the pager
of a Jupyter notebook. Note that acts like display() when Jupyter
Lab is used.
Page(x, ...) ## Default S3 method: Page(x, start = 1, ...)Page(x, ...) ## Default S3 method: Page(x, start = 1, ...)
x |
An object to be displayed in the Notebook pager |
... |
Other arguments, ignored or passed to specific methods. |
start |
Integer, where to start the output. |
Page(default): S3 default method – calls display_data and marks it as pager payload
An R6 class and a constructor function for the creation of a player widget, which automatically increases its value-
Play( value = 0L, min = 0L, max = 100L, interval = 100L, step = 1L, show_repeat = TRUE, ... )Play( value = 0L, min = 0L, max = 100L, interval = 100L, step = 1L, show_repeat = TRUE, ... )
value |
Integer, an initial value. |
min |
Integer, the minimum value. |
max |
Integer, the maximum value. |
interval |
Integer, the maximum value of the intrval . |
step |
The maximum value for the play control. |
show_repeat |
Logical, whether to show a repeat toggle button. |
... |
Further arguments, passed to the superclass constructor. |
Play(): The player widget constructor function.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedIntWidget -> Play
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
intervalAn Integer traitlet, the time interval between between two steps.
stepAn Integer traitlet, the step size.
_playingA Boolean traitlet, indicates wether the player widget is running.
playingA Boolean traitlet, indicates wether the player widget is running.
_repeatA Boolean traitlet, indicates wether the the repeat toggle is on.
repeatA Boolean traitlet, indicates wether the the repeat toggle is on.
show_repeatA Boolean traitlet, determines whether to show a repeat toggle button.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedIntWidget$initialize()RKernel::BoundedIntWidget$validate_max()RKernel::BoundedIntWidget$validate_min()RKernel::BoundedIntWidget$validate_value()clone()
The objects of this class are cloneable with this method.
PlayClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Class and constructors show graphics created by code
SVGWidget(...) ## S3 method for class 'SVGWidget' with(data, expr, envir = list(), enclos = parent.frame(), ...) PlotWidget(...)SVGWidget(...) ## S3 method for class 'SVGWidget' with(data, expr, envir = list(), enclos = parent.frame(), ...) PlotWidget(...)
... |
Arguments, passed to the ImageWidget constructors. |
data |
An "SVGWidget" object |
expr |
An expression to evaluate, or a sequence of expression, encapsulated by curly braces. |
envir |
An environment or a list within which 'expr' is evaluated. |
enclos |
An enclosing environment. |
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> RKernel::HTML -> SVGWidget
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()new()
Initialize the object
SVGWidgetClass$new(..., width = NULL, height = NULL)
...Arguments passed to the superclass initializer
widthA character string, giving the width as a CSS property
heightA character string, giving the height as a CSS property
activate()
Activate widget as graphics device
SVGWidgetClass$activate()
suspend()
Suspend widget as graphics device
SVGWidgetClass$suspend()
render()
Render contents of graphics device as SVG
SVGWidgetClass$render()
clone()
The objects of this class are cloneable with this method.
SVGWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions for progress bars and styling of them
ProgressStyle(...) IntProgress(value = 0L, min = 0L, max = 100L, ...) FloatProgress(value = 0L, min = 0L, max = 100L, ...)ProgressStyle(...) IntProgress(value = 0L, min = 0L, max = 100L, ...) FloatProgress(value = 0L, min = 0L, max = 100L, ...)
... |
Other arguments. |
value |
A floating point number, the initial position of the progress bar |
min |
An floating point number, the minumum value |
max |
An floating point number, the maximum value |
ProgressStyle(): A constructor for a progress bar style
IntProgress(): A constructor for a progress bar style
FloatProgress(): A constructor for a progress bar style
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> ProgrssStyle
_model_nameName of the Javascript model in the frontend
bar_colorThe colour of the progress bar
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
ProgressStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedIntWidget -> IntProgress
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
orientationOrientation of the progress bar, either "horizontal" or "vertical"
bar_styleGeneral style of the progress bar, either "successs", "info", "warning" or "danger"
styleStyling of the progress bar, an instance of "ProgressStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedIntWidget$initialize()RKernel::BoundedIntWidget$validate_max()RKernel::BoundedIntWidget$validate_min()RKernel::BoundedIntWidget$validate_value()clone()
The objects of this class are cloneable with this method.
IntProgressClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedFloatWidget -> FloatProgress
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
orientationOrientation of the progress bar, either "horizontal" or "vertical"
bar_styleGeneral style of the progress bar, either "successs", "info", "warning" or "danger"
styleStyling of the progress bar, an instance of "ProgressStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedFloatWidget$initialize()RKernel::BoundedFloatWidget$validate_max()RKernel::BoundedFloatWidget$validate_min()RKernel::BoundedFloatWidget$validate_value()clone()
The objects of this class are cloneable with this method.
FloatProgressClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This function calls the R6 class constructor in such a way that new members can be added to the created objects.
R6Class_(..., lock_objects = FALSE)R6Class_(..., lock_objects = FALSE)
... |
Arguments passed to the superclass constructor |
lock_objects |
A logical value, indicates whether objects should be
locked. See |
A Generic Constructor for R6 Object Traits
R6Instance(...)R6Instance(...)
... |
Arguments passed to the trait instance initializer |
A Base Class for Traits that are R6 Objects
A Base Class for Traits that are R6 Objects
RKernel::Trait -> R6Trait
valueAn R6 object
classThe R6 class of value
validator()
Checks wether value has the corret class
R6TraitClass$validator(value)
valueA value about to be assigned to the trait.
new()
Initialize an object
R6TraitClass$new(Class, ...)
ClassClass of the object
...Values used for initialization
clone()
The objects of this class are cloneable with this method.
R6TraitClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Send raw HTML code in a character string to the frontend
raw_html(text, id = UUIDgenerate(), update = FALSE)raw_html(text, id = UUIDgenerate(), update = FALSE)
text |
A character string with LaTeX code for math |
id |
A character string with the display id |
update |
A logical value, should an existing display_data option? |
Similar to ' There are pre-defined magics for LaTeX math, CSS, Javascrippt, HTML, and iframes.
register_magic_handler(magic, handler)register_magic_handler(magic, handler)
magic |
A character string that selects a handler |
handler |
A function that takes at least the argument 'code' and more '...' arguments. The latter are constructed from the arguments of the percentage magic. |
Remove a class from those who are output using display() when
they are autoprinted, i.e. returned as the value of the last expression
in a Jupyter notebook cell.
remove_displayed_classes(x)remove_displayed_classes(x)
x |
A character string, the name of a class. |
Remove a class from those who are output using Page() when
they are autoprinted, i.e. returned as the value of the last expression
in a Jupyter notebook cell.
remove_paged_classes(x)remove_paged_classes(x)
x |
A character string, the name of a class. |
An object of this class handles the communication with an R process. There is usually one main session, but there may also sessions for detached code cells.
processx::process -> callr::r_session -> RKernel::RSessionBase -> RKernelSession
http_portThe port number of HTML help.
hostnameThe hostname.
yieldAn optional function to service kernel requests
kernelThe reference to the controlling kernel object
processx::process$as_ps_handle()processx::process$format()processx::process$get_cmdline()processx::process$get_cpu_times()processx::process$get_error_connection()processx::process$get_error_file()processx::process$get_exe()processx::process$get_exit_status()processx::process$get_input_connection()processx::process$get_input_file()processx::process$get_memory_info()processx::process$get_name()processx::process$get_output_connection()processx::process$get_output_file()processx::process$get_pid()processx::process$get_poll_connection()processx::process$get_result()processx::process$get_start_time()processx::process$get_status()processx::process$get_username()processx::process$get_wd()processx::process$has_error_connection()processx::process$has_input_connection()processx::process$has_output_connection()processx::process$has_poll_connection()processx::process$interrupt()processx::process$is_alive()processx::process$is_incomplete_error()processx::process$is_incomplete_output()processx::process$is_supervised()processx::process$kill()processx::process$kill_tree()processx::process$poll_io()processx::process$read_all_error()processx::process$read_all_error_lines()processx::process$read_all_output()processx::process$read_all_output_lines()processx::process$read_error()processx::process$read_error_lines()processx::process$read_output_lines()processx::process$resume()processx::process$signal()processx::process$supervise()processx::process$suspend()processx::process$wait()processx::process$write_input()callr::r_session$attach()callr::r_session$call()callr::r_session$close()callr::r_session$debug()callr::r_session$finalize()callr::r_session$get_running_time()callr::r_session$get_state()callr::r_session$poll_process()callr::r_session$print()callr::r_session$read()callr::r_session$run()callr::r_session$run_with_output()callr::r_session$traceback()RKernel::RSessionBase$initialize()RKernel::RSessionBase$read_output()RKernel::RSessionBase$receive_all_output()RKernel::RSessionBase$receive_output()RKernel::RSessionBase$send_input()RKernel::RSessionBase$send_receive()RKernel::RSessionBase$sleeping()connect()
Connect the session with the main Kernel object
RKernelSession$connect(yield, kernel)
yieldThe function that is called when the session objects yields back control to the kernel object, for example in order to wait for comm message when a widget is active.
kernelThe main kernel objectd
setup()
Set up the R session, by installing hooks etc.
RKernelSession$setup()
start_graphics()
Initialize graphics, start device and return details
RKernelSession$start_graphics()
dev_new()
Start a httpgd device and return the graphics details.
RKernelSession$dev_new()
graphics_details()
Return the graphics details.
RKernelSession$graphics_details()
http_get()
RKernelSession$http_get(slug = "", query = "")
clone()
The objects of this class are cloneable with this method.
RKernelSession$clone(deep = FALSE)
deepWhether to make a deep clone.
Objects from this class handle the "higher-level" interaction between the frontend and the R session. There can be more such interfaces to a session. For example, for the main REPL and for a REPL created by a call to browser().
sessionAn RKernelSession object or 'NULL'
promptThe R console prompt or NULL
copromptThe R console continuation prompt or NULL
browse_promptThe prompt created by a call to 'browser()'
io_timeoutAn integer number a timeout in microseconds
stdoutAccumulated output via the stdout channel.
stderrAccumulated output via the stderr channel.
stdout_callbackA function to be called with stdout text or NULL
stderr_callbackA function to be called with stderr text or NULL
browser_callbackA function to be called when a browser prompt is encountered or NULL
prompt_callbackA function to be called when a command prompt is encountered or NULL
input_callbackA function to be called when input is required or NULL
echoA logical value, if TRUE code sent to the R process will be echoed
found_promptA logical value, whether a prompt has been found in the output of the R process
found_browse_promptThe latest instance of the browser prompt pattern found in the R process output
erroredA logical value, whether an error occurred in the R session
aggreg_stdout()
A potential "stdout_callback" function that aggregates output sent from the R process via "stdout" channel to the eponymous "stdout" field
RSessionAdapter$aggreg_stdout(txt, ...)
txtA character string
...Other arguments, ignored
aggreg_stderr()
A potential "stderr_callback" function that aggregates output sent from the R process via "stderr" channel to the eponymous "stderr" field
RSessionAdapter$aggreg_stderr(txt, ...)
txtA character string
...Other arguments, ignored
collect()
Collect the accumulated output from fields "stdout" and "stderr" into a list with two elements named "stdout" and "stderr".
RSessionAdapter$collect(clear = TRUE)
clearA logical value, whether accumulated output should be cleared after being returned.
new()
Initialize an object
RSessionAdapter$new( session, stdout_callback = self$aggreg_stdout, stderr_callback = self$aggreg_stderr, browser_callback = NULL, prompt_callback = NULL, input_callback = NULL, prompt = "> ", coprompt = "+ ", echo = FALSE )
sessionAn object from class "RKernelSession"
stdout_callbackA callback function for "stdout" output
stderr_callbackA callback function for "stderr" output
browser_callbackA callback function for browser prompts (optional)
prompt_callbackA callback function for command prompts encountered
input_callbackA callback function for input requests (optional)
promptA character string, the expected command prompt
echoA logical value, whether to echo input
run_code()
Run code and pass output to callback functions
RSessionAdapter$run_code( code, io_timeout = 1, stdout_callback = self$stdout_callback, stderr_callback = self$stderr_callback, browser_callback = self$browser_callback, prompt_callback = self$prompt_callback, input_callback = self$input_callback, until_prompt = TRUE, echo = self$echo, debug = FALSE )
codeA character string or character vector with code lines
io_timeoutAn integer value, the timeout of waiting for output
stdout_callbackA callback function for "stdout" output
stderr_callbackA callback function for "stderr" output
browser_callbackA callback function for browser prompts (optional)
prompt_callbackA callback function for command prompts encountered
input_callbackA callback function for input requests (optional)
until_promptA logical value, whether process and wait output until a command prompt is encountered.
echoA logical value, whether to echo input
interrupt()
Send an interrupt signal (SIGINT) to the R process. This should stop what the R process is doing without killing it.
RSessionAdapter$interrupt()
poll_output()
RSessionAdapter$poll_output(io_timeout = 1)
process_output()
Process output created by commands sent to the R process
RSessionAdapter$process_output( stdout_callback = self$stdout_callback, stderr_callback = self$stderr_callback, browser_callback = self$browser_callback, input_callback = self$input_callback, prompt_callback = self$prompt_callback, drop_echo = FALSE, debug = FALSE )
stdout_callbackA callback function for "stdout" output
stderr_callbackA callback function for "stderr" output
browser_callbackA callback function for browser prompts (optional)
input_callbackA callback function for input requests (optional)
prompt_callbackA callback function for command prompts encountered
drop_echoA logical value, whether input echo be dropped
io_timeoutAn integer value, the timeout of waiting for output
until_promptA logical value, whether process and wait output until a command prompt is encountered.
run_cmd()
Run a one-line command without checking and return the output
RSessionAdapter$run_cmd(cmd, debug = FALSE)
cmdA command string
getOption()
Get an option value from the R session
RSessionAdapter$getOption(n, default = NULL)
nA character string, the name of the requested option value
defaultA default value
eval()
Evaluate an expression in the R session and return the result.
RSessionAdapter$eval(expr, safe = FALSE)
exprAn expression
safeA logical value, whether errors should be caught
eval_code()
Evaluate some code in the R session and return the result.
RSessionAdapter$eval_code(code, safe = FALSE)
codeA character string of code
safeA logical value, whether errors should be caught
ls()
Run 'ls()' in the R session and return the result.
RSessionAdapter$ls()
get()
Get the value of a variable (named object) from the R session and return it.
RSessionAdapter$get(n)
nThe name of the variable
assign()
Assign a value to a variable in the R session
RSessionAdapter$assign(n, value)
nA variable name
valueThe value that is assigned to the variable
setOption()
Set an option in the R session
RSessionAdapter$setOption(n, value)
nThe name of the option
valueThe intended option value
importOption()
Import an option value from the R session to the kernel
RSessionAdapter$importOption(n)
nThe option value
handle_BEL()
Handle special output from the R session that starts with BEL
RSessionAdapter$handle_BEL( txt, input_callback, stdout_callback, stderr_callback )
txtOutput string containing BEL
input_callbackA function to request input from the frontend
stdout_callbackA function to process output obtained from the R session via "stdout" channel
stderr_callbackA function to process output obtained from the R session via "stderr" channel
handle_readline()
Handle special an input request obtained from the R session via output indicated with a special output string
RSessionAdapter$handle_readline( txt, input_callback, stdout_callback, stderr_callback )
txtOutput string containing a special readline prompt
input_callbackA function to request input from the frontend
stdout_callbackA function to process output obtained from the R session via "stdout" channel
stderr_callbackA function to process output obtained from the R session via "stderr" channel
handle_scan()
Handle input request created by the function 'scan' the in the R session
RSessionAdapter$handle_scan( txt, input_callback, stdout_callback, stderr_callback )
txtOutput string containing a special readline prompt
input_callbackA function to request input from the frontend
stdout_callbackA function to process output obtained from the R session via "stdout" channel
stderr_callbackA function to process output obtained from the R session via "stderr" channel
clone()
The objects of this class are cloneable with this method.
RSessionAdapter$clone(deep = FALSE)
deepWhether to make a deep clone.
An object of this class handles the lower-level communication with
an R process. Objects of class RKernelSession inherit from
this class.
processx::process -> callr::r_session -> RSessionBase
promptThe command prompt
bannerThe R startup message used as a session banner in the terminal and info box.
waitingA logical value, whether the R session is waiting for input.
processx::process$as_ps_handle()processx::process$format()processx::process$get_cmdline()processx::process$get_cpu_times()processx::process$get_error_connection()processx::process$get_error_file()processx::process$get_exe()processx::process$get_exit_status()processx::process$get_input_connection()processx::process$get_input_file()processx::process$get_memory_info()processx::process$get_name()processx::process$get_output_connection()processx::process$get_output_file()processx::process$get_pid()processx::process$get_poll_connection()processx::process$get_result()processx::process$get_start_time()processx::process$get_status()processx::process$get_username()processx::process$get_wd()processx::process$has_error_connection()processx::process$has_input_connection()processx::process$has_output_connection()processx::process$has_poll_connection()processx::process$interrupt()processx::process$is_alive()processx::process$is_incomplete_error()processx::process$is_incomplete_output()processx::process$is_supervised()processx::process$kill()processx::process$kill_tree()processx::process$poll_io()processx::process$read_all_error()processx::process$read_all_error_lines()processx::process$read_all_output()processx::process$read_all_output_lines()processx::process$read_error()processx::process$read_error_lines()processx::process$read_output_lines()processx::process$resume()processx::process$signal()processx::process$supervise()processx::process$suspend()processx::process$wait()processx::process$write_input()callr::r_session$attach()callr::r_session$call()callr::r_session$close()callr::r_session$debug()callr::r_session$finalize()callr::r_session$get_running_time()callr::r_session$get_state()callr::r_session$poll_process()callr::r_session$print()callr::r_session$read()callr::r_session$run()callr::r_session$run_with_output()callr::r_session$traceback()new()
Initialize the object and start the session
RSessionBase$new(
options = r_session_options(stdout = "|", stderr = "|", cmdargs = c("--interactive",
"--no-readline", "--no-save", "--no-restore"), env = c(R_CLI_NUM_COLORS =
"16777216")),
prompt = "> "
)optionsR session objects, see r_session_options.
promptThe expected prompt string of the R session
envA character vector with environment variables for the R process
sleeping()
Returns a logical value, indicating whether the R process is sleeping.
RSessionBase$sleeping()
send_input()
Send input text to the R process
RSessionBase$send_input(text, drop_echo = FALSE)
textA character string
drop_echoA logical value, whether to drop the echo from stdout.
read_output()
Read output from the R session and drop input echo if so requested
RSessionBase$read_output(n = -1)
nThe number of characters to read
receive_output()
Poll R process for output and read it
RSessionBase$receive_output(timeout = 1)
timeoutA number, the polling timeout in microseconds
receive_all_output()
Receive all output that is available
RSessionBase$receive_all_output(timeout = 1)
timeoutA number, the polling timeout in microseconds
send_receive()
Send text to R process and receive all output from the process
RSessionBase$send_receive(text, timeout = 100)
textA character string
timeoutAn integer number, the polling timeout
clone()
The objects of this class are cloneable with this method.
RSessionBase$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions for tab and accordion widgets
Accordion(...) Tab(...) Stack(...)Accordion(...) Tab(...) Stack(...)
... |
Arguments passed to the superclass constructor |
Accordion(): The constructor function for accordion widgets.
Tab(): The construction function for accordion widgets.
Stack(): The construction function for accordion widgets.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> Box
_titlesA dictionary of strings, for internal use only
titlesA dictionary of strings, exposed since ipywidgets 8.
selected_indexAn integer, the field currently selected.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()validate_index()
Validate the index, i.e. check whether it is within range.
SelectionContainerClass$validate_index(index)
indexAn integer number.
set_title()
Set the title of one of the elements.
SelectionContainerClass$set_title(index, title)
indexThe index number of the element to be changed.
titleA character string, the intended title.
get_title()
Get the title of one of the elements.
SelectionContainerClass$get_title(index)
indexThe index number of the element to be enquired.
new()
An initializer function
SelectionContainerClass$new(children = list(), ...)
childrenA list of widgets
...Other arguments, passed to the superclass method
clone()
The objects of this class are cloneable with this method.
SelectionContainerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> Accordion
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()RKernel::Box$get_title()RKernel::Box$initialize()RKernel::Box$set_title()RKernel::Box$validate_index()clone()
The objects of this class are cloneable with this method.
AccordionClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> Tab
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()RKernel::Box$get_title()RKernel::Box$initialize()RKernel::Box$set_title()RKernel::Box$validate_index()clone()
The objects of this class are cloneable with this method.
TabClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::Box -> Stack
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::Box$notify_children_displayed()RKernel::Box$get_title()RKernel::Box$initialize()RKernel::Box$set_title()RKernel::Box$validate_index()clone()
The objects of this class are cloneable with this method.
StackClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructors for selection widgets, i.e. dropdowns, listboxes etc.
SelectionWidget(options, value, ...) Dropdown(options, value, ...) RadioButtons(options, value, ...) ListBox(options, value, ...) ToggleButtons(options, value, ...) SelectionSlider(options, value, ...) MultipleSelectionWidget(options, value, ...) ListBoxMultiple(options, value, ...) SelectionRangeSlider(options, value, ...)SelectionWidget(options, value, ...) Dropdown(options, value, ...) RadioButtons(options, value, ...) ListBox(options, value, ...) ToggleButtons(options, value, ...) SelectionSlider(options, value, ...) MultipleSelectionWidget(options, value, ...) ListBoxMultiple(options, value, ...) SelectionRangeSlider(options, value, ...)
options |
A named vector or a vector coerceable into a character vector. |
value |
A trait. |
... |
Any other arguments, ignored. |
SelectionWidget(): A constructor function for selection widgets.
Dropdown(): The construction function for dropdown widgets.
RadioButtons(): The construction function for radiobuttons widgets.
ListBox(): The construction function for listbox-selection widgets.
ToggleButtons(): The construction function for togglebuttons widgets.
SelectionSlider(): The construction function for listbox widgets with multiple selections.
MultipleSelectionWidget(): The construction function for multiple-selection widgets.
ListBoxMultiple(): The construction function for listbox widgets with multiple selections.
SelectionRangeSlider(): The construction function for listbox widgets with multiple selections.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> SelectionWidget
_options_labelsA unicode vector of option labels.
indexAn integer that refers to currently selected item.
valueThe selected option
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()validate_index()
Validate an index argument.
SelectionWidgetClass$validate_index(index)
indexThe index to be checked.
new()
Initialiser
SelectionWidgetClass$new(options, value, ...)
optionsA named vector or a vector coerceable into a character vector.
valueName of a selectable option.
...Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
SelectionWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::SelectionWidget -> Dropdown
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::SelectionWidget$initialize()RKernel::SelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
DropdownClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::SelectionWidget -> RadioButtons
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::SelectionWidget$initialize()RKernel::SelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
RadioButtonsClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::SelectionWidget -> ListboxSelect
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
rowsAn integer, the number of rows.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::SelectionWidget$initialize()RKernel::SelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
ListboxSelectClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> ToggleButtonsStyle
_model_nameName of the Javascript model in the frontend.
button_widthA unicode string, the width in CSS language
font_weightA unicode string, the font weight in CSS language
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
ToggleButtonsStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::SelectionWidget -> ToggleButtons
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
tooltipsA unicode vector with tooltips.
iconsA unicode vector with icon specs.
styleA TobbleButtonStyle widget
button_styleA character string, one of "primary", "success", "info", "warning", "danger", or the empty string.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::SelectionWidget$initialize()RKernel::SelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
ToggleButtonsClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::SelectionWidget -> SelectionSlider
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::SelectionWidget$initialize()RKernel::SelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
SelectionSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> MultipleSelectionWidget
_options_labelsA unicode string vector with labels
indexAn integer vector of indices of currenlty selected elements.
valueThe selected option
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()validate_index()
Validate an index.
MultipleSelectionWidgetClass$validate_index(index)
indexAn index, the index to be checked.
new()
Initialiser
MultipleSelectionWidgetClass$new(options, value, ...)
optionsA named vector or a vector coerceable into a character vector.
valueNames of selectable options.
...Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
MultipleSelectionWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::MultipleSelectionWidget -> ListboxSelectMultiple
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
rowsAn integer, the number of rows.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::MultipleSelectionWidget$initialize()RKernel::MultipleSelectionWidget$validate_index()clone()
The objects of this class are cloneable with this method.
ListboxSelectMultipleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::MultipleSelectionWidget -> SelectionRangeSlider
_model_nameName of the Javascript model in the frontend.
_view_nameName of the Javascript view in the frontend.
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()validate_index()
Validate an index.
SelectionRangeSliderClass$validate_index(index)
indexAn index, the index to be checked.
new()
Initialiser
SelectionRangeSliderClass$new(options, value, ...)
optionsA named vector or a vector coerceable into a character vector.
valueNames of selectable options.
...Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
SelectionRangeSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Set the port the HTTP server listens to. For internal use only.
set_http_port(port)set_http_port(port)
port |
An integer |
Show the log of the HTTP requests.
show_http_log()show_http_log()
show_http_log()show_http_log()
Sidecar widgets - works only with Jupyter Lab
Sidecar(...)Sidecar(...)
... |
Arguments passed to the inializer |
Note that these widget need the sidecar extension for Jupyter Lab. See https://github.com/jupyter-widgets/jupyterlab-sidecar
Sidecar(): A constructor for sidebar widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::OutputWidget -> Sidecar
_model_nameName of the Javascript model in the frontend
_model_moduleName of the Javascript frontend module
_model_module_versionVersion of the Javascript frontend module
_view_nameName of the Javascript view in the frontend
_view_moduleName of the Javascript frontend view module
_view_module_versionVersion of the the Javascript view module
titleA unicode string, the title of the widget.
anchorA string that specifies where the widget s to appear: one of "split-right", "split-left", "split-top", "split-bottom", "tab-before", "tab-after", or "right".
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::OutputWidget$clear()RKernel::OutputWidget$display()RKernel::OutputWidget$handle_msg()RKernel::OutputWidget$initialize()RKernel::OutputWidget$stderr()RKernel::OutputWidget$stdout()clone()
The objects of this class are cloneable with this method.
SidecarClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions for sliders (integer and floating-point ones)
IntSlider(value = 0L, min = 0L, max = 100L, ...) IntRangeSlider(value = c(0L, 50L), min = 0L, max = 100L, ...) FloatSlider(value = 0, min = 0, max = 100, ...) FloatRangeSlider(value = c(0, 50), min = 0, max = 100, ...) FloatLogSlider(value = 1, min = 0, max = 40, base = 10, ...)IntSlider(value = 0L, min = 0L, max = 100L, ...) IntRangeSlider(value = c(0L, 50L), min = 0L, max = 100L, ...) FloatSlider(value = 0, min = 0, max = 100, ...) FloatRangeSlider(value = c(0, 50), min = 0, max = 100, ...) FloatLogSlider(value = 1, min = 0, max = 40, base = 10, ...)
value |
A floating point number, the current value of the slider |
min |
A floating point number, the minimum value |
max |
A floating point number, the maximum value |
... |
Other arguments. |
base |
A floating point number, the base of the logarithm |
IntSlider(): An integer slider constructor
IntRangeSlider(): An integer range slider constructor
FloatSlider(): A floating point slider constructor
FloatRangeSlider(): A floating point slider range constructor
FloatLogSlider(): A floating point log-slider constructor
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> SliderStyle
_model_nameName of the Javascript frontend model
handle_colorUnicode string, the color of the slider handle
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
SliderStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedIntWidget -> IntSlider
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
stepAn Integer traitlet, the minimal step size per slider movement
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
readout_formatA unicode string, the format specification
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
disabledA logical value, whether the slider is disabled
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedIntWidget$initialize()RKernel::BoundedIntWidget$validate_max()RKernel::BoundedIntWidget$validate_min()RKernel::BoundedIntWidget$validate_value()clone()
The objects of this class are cloneable with this method.
IntSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedIntRangeWidget -> IntRangeSlider
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
stepAn Integer traitlet, the minimal step size per slider movement
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
readout_formatA logical value, whether values should be updated as the slider is moved by the user
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
disabledA logical value, whether the slider is disabled
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedIntRangeWidget$initialize()RKernel::BoundedIntRangeWidget$validate_max()RKernel::BoundedIntRangeWidget$validate_min()RKernel::BoundedIntRangeWidget$validate_value()clone()
The objects of this class are cloneable with this method.
IntRangeSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedFloatWidget -> FloatSlider
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
stepA Float traitlet, the minimal step size per slider movement
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
readout_formatA logical value, whether values should be updated as the slider is moved by the user
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
disabledA logical value, whether the slider is disabled
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedFloatWidget$initialize()RKernel::BoundedFloatWidget$validate_max()RKernel::BoundedFloatWidget$validate_min()RKernel::BoundedFloatWidget$validate_value()clone()
The objects of this class are cloneable with this method.
FloatSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedFloatRangeWidget -> FloatRangeSlider
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
stepA Float traitlet, the minimal step size per slider movement
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
readout_formatA logical value, whether values should be updated as the slider is moved by the user
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
disabledA logical value, whether the slider is disabled
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedFloatRangeWidget$initialize()RKernel::BoundedFloatRangeWidget$validate_max()RKernel::BoundedFloatRangeWidget$validate_min()RKernel::BoundedFloatRangeWidget$validate_value()clone()
The objects of this class are cloneable with this method.
FloatRangeSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::BoundedLogFloatWidget -> FloatLogSlider
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
stepA Float traitlet, the minimal step size per slider movement
orientationA Unicode string, either "horizontal" or "vertical"
readoutA logical value, whether the value should be showns (read out)
readout_formatA logical value, whether values should be updated as the slider is moved by the user
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
disabledA Boolean traitlet, whether the slider is disabled
baseA Float traitlet, the base of the logarithm
styleA SliderStyle widget
behaviorA string that describes the ddragging behavior.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::BoundedLogFloatWidget$initialize()RKernel::BoundedLogFloatWidget$validate_max()RKernel::BoundedLogFloatWidget$validate_min()RKernel::BoundedLogFloatWidget$validate_value()clone()
The objects of this class are cloneable with this method.
FloatLogSliderClass$clone(deep = FALSE)
deepWhether to make a deep clone.
importFrom svglite svgstring
start_graphics()start_graphics()
Create an HTML iframe tag that refers to some (usually HTML) code
str2iframe( code, resize = FALSE, width = "100%", aspect_ratio = "16 / 10", height = character(0), class = "rkernel-iframe", style = "border-style:none", use_srcdoc = FALSE, ... )str2iframe( code, resize = FALSE, width = "100%", aspect_ratio = "16 / 10", height = character(0), class = "rkernel-iframe", style = "border-style:none", use_srcdoc = FALSE, ... )
code |
The code to be shown in the iframe |
resize |
Logical; should the iframe be resizeable? |
width |
The intended width of the iframe, a string or a number |
aspect_ratio |
The intended aspect ratio of the iframe, a string |
height |
The intended height, a string. Overrides the aspect ratio if given. |
class |
The DOM class attribute the iframe, a string |
style |
The CSS style attribte of the iframe, a string |
use_srcdoc |
A logical value, whether the 'srcdoc' attribute should be used to set the iframe content, rather than the 'src' attribute. |
... |
Other arguments, ignored. |
An Enumerated String Constructor
StrEnum(...)StrEnum(...)
... |
Arguments passed to the trait instance initializer |
An Enumerated Strings Trait
An Enumerated Strings Trait
RKernel::Trait -> RKernel::Unicode -> StrEnum
enuma character vector
optionalA logical value, whether value can be empty.
validator()
Check whether the assigned vector is one of the allowed enumerated strings.
StrEnumClass$validator(value)
valueA value to be assigned to the trait
new()
Initialize the trait.
StrEnumClass$new(enum, default = character(0), optional = FALSE)
enumA character vector of permitted enumerated strings.
defaultThe default value
optionalLogical can the value be empty?
clone()
The objects of this class are cloneable with this method.
StrEnumClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructor functions for string-related widgets (text areas etc.)
LabelStyle(...) TextStyle(...) HTMLStyle(...) HTMLMathStyle(...) StringWidget(value = character(0), ...) HTML(value = character(0), ...) HTMLMath(value = character(0), ...) Label(value = character(0), ...) Textarea(value = character(0), ...) TextWidget(value = character(0), ...) PasswordWidget(value = character(0), ...) Combobox(value = character(0), ...)LabelStyle(...) TextStyle(...) HTMLStyle(...) HTMLMathStyle(...) StringWidget(value = character(0), ...) HTML(value = character(0), ...) HTMLMath(value = character(0), ...) Label(value = character(0), ...) Textarea(value = character(0), ...) TextWidget(value = character(0), ...) PasswordWidget(value = character(0), ...) Combobox(value = character(0), ...)
... |
Arguments passed to the inializer |
value |
A character vector |
LabelStyle(): The constructor for Label styles
TextStyle(): The constructor for Text styles
HTMLStyle(): The constructor for HTML styles
HTMLMathStyle(): The constructor for HTMLMath styles
StringWidget(): A constructor for string widgets
HTML(): A constructor for HTML widgets
HTMLMath(): A constructor for HTML widgets with math
Label(): A constructor for label widgets
Textarea(): A constructor for text area widgets
TextWidget(): A constructor for text field widgets
PasswordWidget(): A constructor for password entry widgets
Combobox(): A constructor for combo boxes
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> StringStyle
_model_nameName of the Javascript model in the frontend
backgroundThe background color
font_sizeThe font size
text_colorThe text color
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
StringStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> RKernel::StringStyle -> LabelStyle
_model_nameName of the Javascript model in the frontend
font_familyThe font family
font_styleThe font style
font_variantThe font variant
font_weightThe font weight
text_decorationThe text decoration
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
LabelStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> RKernel::StringStyle -> TextStyle
_model_nameName of the Javascript model in the frontend
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
TextStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> RKernel::StringStyle -> HTMLStyle
_model_nameName of the Javascript model in the frontend
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
HTMLStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> RKernel::StringStyle -> HTMLMathStyle
_model_nameName of the Javascript model in the frontend
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
HTMLMathStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> StringWidget
_model_nameName of the Javascript model in the frontend
valueA unicode vector
placeholderA placeholder character
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
StringWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> HTML
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
styleThe HTML style, an object of class "HTMLStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
HTMLClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> HTMLMath
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
styleThe HTMLMath style, an object of class "HTMLMathStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
HTMLMathClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> Label
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
styleThe Label style, an object of class "LabelStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
LabelClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> Textarea
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
disabledA logical value, whether the slider is disabled
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
rowsAn integer, the number of rows
styleThe Text style, an object of class "TextStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()on_submit()
Add or remove a handler for submit events.
TextareaClass$on_submit(handler, remove = FALSE)
handlerA function that is called when content is submitted by the user hitting 'enter'.
removeLogical value, whether the handler is to be removed
clone()
The objects of this class are cloneable with this method.
TextareaClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> TextWidget
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
disabledA logical value, whether the slider is disabled
continuous_updateA logical value, whether values should be updated as the slider is moved by the user
styleThe Text style, an object of class "TextStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clear()
Clear the text area
TextWidgetClass$clear()
on_submit()
Add or remove a handler for submit events.
TextWidgetClass$on_submit(handler, remove = FALSE)
handlerA function that is called when content is submitted by the user hitting 'enter'.
removeLogical value, whether the handler is to be removed
clone()
The objects of this class are cloneable with this method.
TextWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> RKernel::TextWidget -> PasswordWidget
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()RKernel::TextWidget$clear()RKernel::TextWidget$on_submit()clone()
The objects of this class are cloneable with this method.
PasswordWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::StringWidget -> RKernel::TextWidget -> Combobox
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
optionsA unicode vector, the available options
ensure_optionA boolean (logical) value, whether at least one option has to be activated
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()RKernel::TextWidget$clear()RKernel::TextWidget$on_submit()clone()
The objects of this class are cloneable with this method.
ComboboxClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Classes and constructors to great tag input widgets
TagsInput(...) ColorsInput(...) FloatsInput(...) IntsInput(...)TagsInput(...) ColorsInput(...) FloatsInput(...) IntsInput(...)
... |
Arguments passed to the inializer |
TagsInput(): A taginput constructor
ColorsInput(): A color taginput constructor
FloatsInput(): A color taginput constructor
IntsInput(): A color taginput constructor
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> TagsInputBase
_model_nameName of the Javascript model in the frontend
valueA list of tags
placeholderA placeholder string
allowed_tagsOptional list with allowed tags.
allow_duplicatesLogical, whether duplicate tags are allowed.
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Check value for validity,
TagsInputBaseClass$validate_value(value)
valueA character string with one or more tags.
new()
Initializer function
TagsInputBaseClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
TagsInputBaseClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::TagsInputBase -> TagsInput
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend.
valueA list of tags as unicode strings
tag_styleThe string that describes the tag style
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::TagsInputBase$initialize()RKernel::TagsInputBase$validate_value()clone()
The objects of this class are cloneable with this method.
TagsInputClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::TagsInputBase -> ColorsInput
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend.
valueA list of tags as unicode strings
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::TagsInputBase$initialize()RKernel::TagsInputBase$validate_value()clone()
The objects of this class are cloneable with this method.
ColorsInputClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::TagsInputBase -> RKernel::TagsInput -> ColorsInput
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Check value for validity,
NumbersInputBase$validate_value(value)
valueA character string with one or more tags.
new()
Initializer function
NumbersInputBase$new(...)
...Arguments passed to the superclass initializer
valueAn initial value
clone()
The objects of this class are cloneable with this method.
NumbersInputBase$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::TagsInputBase -> RKernel::TagsInput -> RKernel::ColorsInput -> FloatsInput
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend.
valueA list of numeric tags
formatThe number format
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::ColorsInput$initialize()RKernel::ColorsInput$validate_value()clone()
The objects of this class are cloneable with this method.
FloatsInputClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> RKernel::TagsInputBase -> RKernel::TagsInput -> RKernel::ColorsInput -> IntsInput
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()RKernel::ColorsInput$initialize()RKernel::ColorsInput$validate_value()clone()
The objects of this class are cloneable with this method.
IntsInputClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and constructor of time traitlets.
RKernel::Trait -> TimeClass
valueA date.
coerceLogical value, whether assignments to the value field should be coerced to the appropriate type.
validator()
Check the value assigned to the traitlet.
TimeClass$validator(value)
valueThe value assigned to the traitlet.
new()
Initialize the traitlet.
TimeClass$new(initial = as.POSIXct(integer(0)), coerce = TRUE)
initialAn optional POSIXct object or an object coercive into such an object
coerceAn optional logical value
clone()
The objects of this class are cloneable with this method.
TimeClass$clone(deep = FALSE)
deepWhether to make a deep clone.
An R6 class and constructor function for time picker widgets
TimePicker(...)TimePicker(...)
... |
Arguments passed to the inializer |
TimePicker(): A constructor for dat picker widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> TimePicker
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript view in the frontend
valueThe date and time. If non-zero length, must have valid timezone info.
disabledBoolean, whether the user can make changes
minMinimum selectable date and time. If non-zero length, must have valid timezone info.
maxMaximum selectable date and time. If non-zero length, must have valid timezone info.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$on_change()validate_value()
Check wether "value" is within range.
TimePickerClass$validate_value(value)
valueA date and time to be checked for validity
validate_min()
Validate the "min" field after assignment.
TimePickerClass$validate_min(min)
minA minimum date and time to be checked for validity
validate_max()
Validate the "max" field after assignment.
TimePickerClass$validate_max(max)
maxA maximum date and time to be checked for validity
new()
TimePickerClass$new(...)
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
TimePickerClass$clone(deep = FALSE)
deepWhether to make a deep clone.
The function to_json is a generic and idempotent interface
to toJSON.
to_json(x, auto_unbox = TRUE, ...) ## Default S3 method: to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'list' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'json' to_json(x, ...) ## S3 method for class 'Trait' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'Vector' to_json(x, ...) ## S3 method for class 'List' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'Widget' to_json(x, ...) ## S3 method for class 'Bytes' to_json(x, ...)to_json(x, auto_unbox = TRUE, ...) ## Default S3 method: to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'list' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'json' to_json(x, ...) ## S3 method for class 'Trait' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'Vector' to_json(x, ...) ## S3 method for class 'List' to_json(x, auto_unbox = TRUE, ...) ## S3 method for class 'Widget' to_json(x, ...) ## S3 method for class 'Bytes' to_json(x, ...)
x |
An object to be converted as JSON |
auto_unbox |
A logical value, whether one-element a JSON list should be changed into JSON scalar. |
... |
Other arguments, passed on to |
to_json(default): Default S3 method
to_json(list): S3 method for lists.
to_json(json): S3 method for JSON character strings. Returns its
argument as is, making to_json idempotent.
to_json(Trait): S3 method for 'TraitClass' objects, i.e. traitlets.
to_json(Vector): S3 method for 'VectorClass' objects
to_json(List): S3 method for 'ListClass' objects
to_json(Widget): S3 method for 'WidgetClass' objects, i.e. jupyter widgets
to_json(Bytes): S3 method for 'BytesClass' objects
A constructor function and a class to create toggle-button widgets
ToggleButtonStyle(...) ToggleButton(...)ToggleButtonStyle(...) ToggleButton(...)
... |
Arguments passed to the inializer |
ToggleButtonStyle(): The constructor for Togglebuttons styles
ToggleButton(): A toggle-button constructor
RKernel::HasTraits -> RKernel::Widget -> RKernel::DescriptionStyle -> ToggleButtonStyle
_model_nameName of the Javascript model in the frontend
font_familyThe font family
font_sizeThe font size
font_styleThe font style
font_variantThe font variant
font_weightThe font weight
text_colorThe text color
text_decorationThe text decoration
required_versionMinimum required ipywidgets version in which the current widget class is supported.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$initialize()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()clone()
The objects of this class are cloneable with this method.
ToggleButtonStyleClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> ToggleButton
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
valueBoolean, whether the box is checked
tooltipA tooltip
descriptionA button description
disabledBoolean, whether the button is disabled
iconAn icon (a fontawesome icon name)
button_styleThe string that describes the button style
styleThe toggle button style, an object of class "ToggleButtonStyleClass"
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
ToggleButtonClass$clone(deep = FALSE)
deepWhether to make a deep clone.
The class TraitClass brings (some of) the functionality of the
traitlets framework on which
the ipywidgets framework is
based to R.
The function TraitInstance returns information needed by a
HasTraits object to construct a TraitClass
object.
Trait(...) TraitInstance(Class, ...)Trait(...) TraitInstance(Class, ...)
... |
Arguments passed to the inializer |
Class |
An R6 Class that inherits from "TraitClass" |
Trait(): A Baseline Trait Constructor
TraitInstance(): A "Delayed Constructor" for Traits, to be used by constructors of derived classes.
valueThe value of the trait
observersA list of functions to be called as notification callbacks
validatorsA list of functions to check the validity of a
set()
Set the value of the trait
TraitClass$set(value, notify = FALSE)
valueThe value to be set
notifyLogical; whether to call notification callbacks
get()
Get the trait value
TraitClass$get()
new()
Initialize the trait, i.e. set an initial value
TraitClass$new(initial)
initialThe initial value
coerceLogical; whether to coerce the initial value to the approriate mode.
clone()
The objects of this class are cloneable with this method.
TraitClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A Unicode String Trait Constructor
Unicode(...)Unicode(...)
... |
Arguments passed to the trait instance initializer |
A Unicode String Vector Trait
A Unicode String Vector Trait
## S3 method for class 'Unicode' as.character(x, ...)## S3 method for class 'Unicode' as.character(x, ...)
x |
A Unicode traitlet |
... |
Other arguments, ignored. |
as.character(Unicode): Coerce a unicode string trait to a character vector
RKernel::Trait -> Unicode
coerceLogical value, whether values should be coerced to character strings.
lengthLength of the unicode character vector
valueThe value of the unicode character vector
optionalA logical value, whether value can be empty.
validator()
A validator function
UnicodeClass$validator(value)
valueThe value to be assigned
new()
Initialize an object
UnicodeClass$new( initial = character(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initialAn initial value
coerceLogical value, whether values should be coerced to character stringes
optionalLogical value, whether the value may be empty
lengthInteger, the intended length of the unicode vector
clone()
The objects of this class are cloneable with this method.
UnicodeClass$clone(deep = FALSE)
deepWhether to make a deep clone.
Get the prefix for internal URLs
url_prefix()url_prefix()
Create an HTML iframe tag that refers to some (usually HTML) code
url2iframe( url, resize = FALSE, width = "100%", aspect_ratio = "16 / 10", height = character(0), class = "rkernel-iframe", style = "border-style:none", ... )url2iframe( url, resize = FALSE, width = "100%", aspect_ratio = "16 / 10", height = character(0), class = "rkernel-iframe", style = "border-style:none", ... )
url |
The URL of the page to be shown in the iframe (can also be a data URI) |
resize |
Logical; should the iframe be resizeable? |
width |
The intended width of the iframe, a string or a number |
aspect_ratio |
The intended aspect ratio of the iframe, a string |
height |
The intended height, a string. Overrides the aspect ratio if given. |
class |
The DOM class attribute the iframe, a string |
style |
The CSS style attribte of the iframe, a string |
... |
Other arguments, ignored. |
A constructor function and a class to create toggle-button widgets
Valid(...)Valid(...)
... |
Arguments passed to the inializer |
Valid(): A constructor for validity indicator widgets
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> RKernel::ValueWidget -> Valid
_model_nameName of the Javascript model in the frontend
_view_nameName of the Javascript model view in the frontend
indentBoolean, whether to indent the indicator widget
valueBoolean, whether the validity should be indicated
readoutText to be shown if the Widget value is FALSE
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()RKernel::ValueWidget$initialize()RKernel::ValueWidget$on_change()clone()
The objects of this class are cloneable with this method.
ValidClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A base class for widgets that are connected with values
RKernel::HasTraits -> RKernel::Widget -> RKernel::DOMWidget -> RKernel::DescriptionWidget -> ValueWidget
valueA list or any other vector of values
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::DOMWidget$add_class()RKernel::DOMWidget$has_class()RKernel::DOMWidget$remove_class()new()
A generic initializer function
ValueWidgetClass$new(value, ...)
valueA value to initialize instance with
...Any other arguments, ignored.
on_change()
Add handler function to be called when value is changed
ValueWidgetClass$on_change(handler, remove = FALSE)
handlerA handler function
removeA logical value, whether the handler should be removed or added.
clone()
The objects of this class are cloneable with this method.
ValueWidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.
A class and a constructor function to create generic vector trait(let)s.
Vector(...)Vector(...)
... |
Arguments that are passed to the initialize method of 'VectorClass' |
RKernel::Trait -> Vector
valueA list
classA character string, the common class of the vector elements
validator()
A function that checks the validity of an assigned value, i.e. whether the assigned value is a list with all elements of the same class
VectorClass$validator(value)
valueA value to be assigned as the traitlet value
new()
VectorClass$new(class = NULL, ...)
classString, optional common class
...Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
VectorClass$clone(deep = FALSE)
deepWhether to make a deep clone.
This is a re-implementation of View that works within
Jupyter notebooks by leveraging the Jupyter widgets infrastructure
or by using the DataTables Javascript library. The latter is the case if the system option "View.backend"
is set to "dataTable" or if this option is not set. Otherwise a 'virtable_widget' is used.
View(x, title = deparse(substitute(x)), ...) ## Default S3 method: View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'data.frame' View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'data.set' View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'importer' View(x, title = deparse(substitute(x)), ...)View(x, title = deparse(substitute(x)), ...) ## Default S3 method: View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'data.frame' View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'data.set' View(x, title = deparse(substitute(x)), ...) ## S3 method for class 'importer' View(x, title = deparse(substitute(x)), ...)
x |
An R object which can be coerced to a data frame with non-zero numbers of rows and columns. |
title |
A string used as title. Currently unused. |
... |
Other arguments, ignored. |
This is a widget that can be used to potentially large tabular data objects, such as data frames.
It is also a potential backend for the View function.
virtable_widget( x, pagesize = getOption("rkernel_view_size", c(10, 10)), continuous_update = TRUE ) fmt_tab_section(x, i, j) ## Default S3 method: fmt_tab_section(x, i, j) ## S3 method for class 'tbl_df' fmt_tab_section(x, i, j)virtable_widget( x, pagesize = getOption("rkernel_view_size", c(10, 10)), continuous_update = TRUE ) fmt_tab_section(x, i, j) ## Default S3 method: fmt_tab_section(x, i, j) ## S3 method for class 'tbl_df' fmt_tab_section(x, i, j)
x |
A tabular object, e.g. a data frame |
pagesize |
Number of rows and columns that are shown by the widget. |
continuous_update |
Logical, whether sliders should lead continuous updates. |
i |
Integer values, indexing rows |
j |
Integer values, indexing cols |
fmt_tab_section(): Format a section of a tabular object to be used by virtable_widget.
fmt_tab_section(default): Default method
fmt_tab_section(tbl_df): Tibble method
An R6 class and a constructor function for the creation of a link widget, which links two widgets so that their values are synchronized
WidgetLink(source, target, ...) DirectionalLink(source, target, ...)WidgetLink(source, target, ...) DirectionalLink(source, target, ...)
source |
A link with two elements, the first is a widget, the second is one of its traits. |
target |
A link with two elements, the first is a widget, the second is one of its traits. |
... |
Other arguments passed to the inializer |
The function WidgetLink creates objects of the R6 Class
"WidgetLinkClass", which in turn have the S3 class attribute "WidgetLink"
WidgetLink(): The WidgetLink constructor function
DirectionalLink(): The WidgetLink constructor function
RKernel::HasTraits -> RKernel::Widget -> RKernel::CoreWidget -> WidgetLink
_model_nameName of the Javascript model in the frontend.
sourceA pair of Unicode strings, the first is the JSON representation of a widget, the second is the name of a trait(let) of the widget.
targetA pair of Unicode strings, the first is the JSON representation of a widget, the second is the name of a trait(let) of the widget.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()new()
An initializer method
WidgetLinkClass$new(source, target, ...)
sourceA list with two elements, a widget and the name of a trait(let).
targetA list with two elements, a widget and the name of a trait(let).
...Futher arguments, passed to the superclass initializer.
clone()
The objects of this class are cloneable with this method.
WidgetLinkClass$clone(deep = FALSE)
deepWhether to make a deep clone.
RKernel::HasTraits -> RKernel::Widget -> RKernel::CoreWidget -> RKernel::WidgetLink -> DirectionalLink
_model_nameName of the Javascript model in the frontend.
RKernel::HasTraits$notify()RKernel::HasTraits$observe()RKernel::HasTraits$validate()RKernel::Widget$_send()RKernel::Widget$check_version()RKernel::Widget$close()RKernel::Widget$display_data()RKernel::Widget$get_state()RKernel::Widget$handle_buffers()RKernel::Widget$handle_comm_msg()RKernel::Widget$handle_comm_opened()RKernel::Widget$handle_custom_msg()RKernel::Widget$handle_displayed()RKernel::Widget$handle_event()RKernel::Widget$on_displayed()RKernel::Widget$on_event()RKernel::Widget$on_msg()RKernel::Widget$open()RKernel::Widget$send()RKernel::Widget$send_state()RKernel::Widget$set_state()RKernel::WidgetLink$initialize()clone()
The objects of this class are cloneable with this method.
DirectionalLinkClass$clone(deep = FALSE)
deepWhether to make a deep clone.
The base class from which all widget classes are derived
Widget(...)Widget(...)
... |
Arguments passed to the inializer |
Widget(): A Widget Constructor Function
RKernel::HasTraits -> Widget
_model_idIdentifyer of the frontend Javascript object
_model_nameName of the Javascript model in the frontend
_model_moduleName of the Javascript module with the model
_model_module_versionVersion of the module where the model is defined
_view_nameName of the Javascript model view in the frontend
_view_moduleVersion of the module where the view is defined
_view_module_versionVersion of the module where the view is defined
_view_countNumber of views that refer to the same frontend model object
traits_to_syncNames of the traits to be synchronized with the frontend
sync_suspendedLogical value, whether synchronization is suspended
custom_msg_callbacksA list of functions to be called on receiving a message
event_callbacksA list of functions to be called on an event
displayed_callbacksA list of functions to be called when the widget
_commThe 'comm' connecting to the frontend or NULL
required_versionMinimum required ipywidgets version in which the current widget class is supported.
commThe 'comm' connecting the frontend (as an active binding)
new()
Initialize an object
WidgetClass$new(..., open = TRUE)
...Values used for initialization
openLogical, whether a connection with the frontend should be opened
open()
Open a connection to the frontend
WidgetClass$open()
close()
Close the connection to the frontend
WidgetClass$close()
get_state()
Prepare synchronized traits for sending them to the frontend
WidgetClass$get_state(keys = NULL)
keysKeys/names of the traits to be updated in the frontend
set_state()
Update the synchronized states, usually with information from the frontend
WidgetClass$set_state(state)
stateA list of values for the synchronized traits
send_state()
Send updated traits to the frontend
WidgetClass$send_state(keys = NULL, drop_defaults = FALSE)
keysKeys/names of the traits to be updated in the frontend
drop_defaultsLogical value, not yet used
send()
Send content and binary buffers to the fronend
WidgetClass$send(content, buffers = NULL)
contentSome user-defined information to be send to the frontend
buffersSome raw vector buffers
display_data()
Send display-data of the widget to the frontend
WidgetClass$display_data()
handle_comm_opened()
Handle a 'comm' opened in the frontend
WidgetClass$handle_comm_opened(comm, data)
commThe 'comm' object that is opened
dataData sent by the frontend
handle_comm_msg()
Handle a message from the frontend
WidgetClass$handle_comm_msg(comm, msg)
commThe 'comm' object via which the message is received
msgMessage sent by the frontend
handle_buffers()
Handle buffers in message. This method should be overwritten by inherting classes that actually process data in buffer components of messages.
WidgetClass$handle_buffers(msg)
msgA comm message
handle_custom_msg()
Call the custom message handlers
WidgetClass$handle_custom_msg(content)
contentThe data received
on_msg()
Install a handler for messages being received
WidgetClass$on_msg(handler, remove = FALSE)
handlerA handler function
removeLogical, should the handler be removed?
on_event()
Install a handler for events in the frontend
WidgetClass$on_event(event, handler, remove = FALSE)
eventA character that describes the event
handlerA handler function
removeLogical, should the handler be removed?
handle_event()
Call the installed event handlers
WidgetClass$handle_event(event, args)
eventA string that describes the event
argsA list of argument passed on with the event
on_displayed()
Install a handler to be called when the widget is displayed
WidgetClass$on_displayed(handler, remove = FALSE)
handlerA handler function
removeLogical, should the handler be removed?
handle_displayed()
Call the installed display handlers
WidgetClass$handle_displayed()
_send()
The internal function to send messages to the frontend
WidgetClass$_send(msg, buffers = NULL)
msgThe message
buffersRaw data buffers or NULL
check_version()
Check whether current widget class is supported by ipywidgets
WidgetClass$check_version()
clone()
The objects of this class are cloneable with this method.
WidgetClass$clone(deep = FALSE)
deepWhether to make a deep clone.