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] |
Maintainer: | Martin Elff <[email protected]> |
License: | GPL-2 |
Version: | 1.0 |
Built: | 2024-11-06 22:14:32 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 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. |
Creates Javascript code and sends it to the frontend that opens an alert box in the browser.
alert(text)
alert(text)
text |
A character string with the text that appears in the |
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
value
A logical vector, usually of length 1
optional
Logical, whether an initializing logical value must be provided
coerce
Logical, whether 'as.logical()' is implicitely used when a value is assigned to the trait
length
Integer, the length of the logical vector that poses as the value of the traitlet.
validator()
A validator method
BooleanClass$validator(value)
value
A value to be checked for validity
new()
The initializing method
BooleanClass$new( initial, coerce = TRUE, optional = length(initial) == 0, length = 1 )
initial
A value with which the traitlet is initialized
coerce
Logical, used to initialize the 'coerce' field
optional
Logical, used to initialize the 'optional' field
length
Integer, used to initialize the 'length' field
clone()
The objects of this class are cloneable with this method.
BooleanClass$clone(deep = FALSE)
deep
Whether 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$finalize()
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)
value
A value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedFloatRangeWidgetClass$validate_min(min)
min
A minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedFloatRangeWidgetClass$validate_max(max)
max
A 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)
deep
Whether 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_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
disabled
A Boolean traitlet, whether the text widget is disabled.
continuous_update
A Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
step
A 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$finalize()
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)
deep
Whether 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$finalize()
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)
value
A value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedFloatWidgetClass$validate_min(min)
min
A minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedFloatWidgetClass$validate_max(max)
max
A maximum value, should be numeric.
new()
Initialize an object.
BoundedFloatWidgetClass$new(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.
clone()
The objects of this class are cloneable with this method.
BoundedFloatWidgetClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
disabled
A Boolean traitlet, whether the text widget is disabled.
continuous_update
A Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
step
A 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$finalize()
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)
deep
Whether 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$finalize()
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)
value
A value, should be an integer number.
validate_min()
Validate the "min" field after assignment.
BoundedIntWidgetClass$validate_min(min)
min
A minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
BoundedIntWidgetClass$validate_max(max)
max
A 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)
deep
Whether 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$finalize()
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)
value
A value, should be an integer number.
validate_min()
Validate the "min" field after assignment.
BoundedIntRangeWidgetClass$validate_min(min)
min
A minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
BoundedIntRangeWidgetClass$validate_max(max)
max
A 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)
deep
Whether 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$finalize()
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)
value
A value, should be numeric.
validate_min()
Validate the "min" field after assignment.
BoundedLogFloatWidgetClass$validate_min(min)
min
A minimum value, should be numeric.
validate_max()
Validate the "max" field after assignment.
BoundedLogFloatWidgetClass$validate_max(max)
max
A maximum value, should be numeric.
new()
Initialize an object.
BoundedLogFloatWidgetClass$new(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.
clone()
The objects of this class are cloneable with this method.
BoundedLogFloatWidgetClass$clone(deep = FALSE)
deep
Whether 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 |
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_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
_view_module
Name of the module where the view is defined
_view_module_version
Version of the module where the view is defined
children
A generic vector with the widgets in the container
box_style
The 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$finalize()
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(), ...)
children
A 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> HBox
_model_name
Name of the Javascript model in the frontend
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> VBox
_model_name
Name of the Javascript model in the frontend
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> GridBox
_model_name
Name of the Javascript model in the frontend
_view_name
Name 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$finalize()
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)
deep
Whether 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_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_model_name
Name of the Javascript model in the frontend
_view_module
Name of the module where the view is defined
_view_module_version
Version of the module where the view is defined
_view_name
Name of the Javascript model view in the frontend
description
A button description
disabled
Boolean, whether the button is disabled
icon
Name of an optional icon
button_style
The string that describes the button style
tooltip
An optional tooltip string
style
The 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$finalize()
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)
handler
A function that is called when the button is clicked
remove
Logical 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> ButtonStyle
_model_name
Name of the Javascript model in the frontend
button_color
The colour of the button
font_family
The font family of the button label
font_size
The font size of the button label
font_style
The font style of the button label
font_variant
The font variant of the button label
font_weight
The font weight of the button label
text_color
The text colour of the button label
text_decoration
The 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$finalize()
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)
deep
Whether 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
value
A raw bytes vector
optional
Logical, whether an initializing logical value must be provided
coerce
Logical, whether 'as.raw()' is implicitely used when a value is assigned to the trait
validator()
A validator method
BytesClass$validator(value)
value
A value to be checked for validity
new()
The initializing method
BytesClass$new(initial = raw(0), coerce = TRUE, optional = TRUE)
initial
A value with which the traitlet is initialized
coerce
Logical, used to initialize the 'coerce' field
optional
Logical, used to initialize the 'optional' field
clone()
The objects of this class are cloneable with this method.
BytesClass$clone(deep = FALSE)
deep
Whether 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)
handler
A function
remove
A 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)
deep
Whether to make a deep clone.
Set options locally for the current jupyter notebook cell
cell.options(...)
cell.options(...)
... |
Options, see |
Set graphics parameters locally for the current jupyter notebook cell
cell.par(...)
cell.par(...)
... |
Graphics parameters, see |
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_name
Name of the Javascript model in the frontend
background
The background color
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> Checkbox
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
description
A button description
disabled
Boolean, whether the button is disabled
indent
Boolean, whether to indent the checkbox
value
Boolean, whether the box is checked
style
The 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$finalize()
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)
deep
Whether 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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
concise
Boolean, whether the a short version should be shown
disabled
Boolean, whether the button is disabled
value
Unicode 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$finalize()
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)
deep
Whether 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
optional
Logical value, whether a length-zero value is allowed.
validator()
Check the value assigned to the traitlet.
ColorTraitClass$validator(value)
value
The value assigned to the traitlet.
clone()
The objects of this class are cloneable with this method.
ColorTraitClass$clone(deep = FALSE)
deep
Whether 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"
id
A character string, the comm id
target_name
A character string, the target
handlers
A list of handler functions
data
A list of data
new()
Initialize a 'Comm' object
CommClass$new(target_name, id = uuid(), handlers = list())
target_name
A string, the name of the target
id
A string, the comm id
handlers
A list of handler functions
kernel
The relevant kernel
open()
Open a comm
CommClass$open(data, metadata = emptyNamedList, buffers = NULL)
data
A named list
metadata
A named list
buffers
A list of raw vectors or NULL
send()
Send data through a comm
CommClass$send(data, metadata = emptyNamedList, buffers = NULL)
data
A named list
metadata
A named list
buffers
A list of raw vectors or NULL
close()
Close a comm
CommClass$close( data = emptyNamedList, metadata = emptyNamedList, buffers = NULL )
data
A named list
metadata
A named list
buffers
A list of raw vectors or NULL
clone()
The objects of this class are cloneable with this method.
CommClass$clone(deep = FALSE)
deep
Whether 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'
comms
A list of Comms.
add_handlers()
Add a handler for a comm target
CommManagerClass$add_handlers(target_name, handlers)
target_name
A string, the name of the target.
handlers
A named list of handlers
remove_handlers()
Remove the handlers of a comm target
CommManagerClass$remove_handlers(target_name)
target_name
A string, the name of the target
has_handlers()
Check if handlers for a target exist
CommManagerClass$has_handlers(target_name)
target_name
A string, the name of the target
get_handlers()
Get the handlers for a target
CommManagerClass$get_handlers(target_name)
target_name
A 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_name
A 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_name
A string, the name of the target
handle_open()
Handle a 'comm open' request from the frontend
CommManagerClass$handle_open(target_name, id, data)
target_name
A string, the name of the target
id
A string, the comm id
data
Data sent by the frontend
handle_close()
Handle a 'comm close' request from the frontend
CommManagerClass$handle_close(id, data)
id
A string, the comm id
data
Data sent by the frontend
handle_msg()
Handle a comm message from the frontend
CommManagerClass$handle_msg(id, data)
id
A string, the comm id
data
Data sent by the frontend
send()
Send data to the frontend
CommManagerClass$send(id, data, metadata = emptyNamedList, buffers = NULL)
id
A string, the comm id
data
A named list
metadata
A named list
buffers
A 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 )
id
A string, the comm id
target_name
A string, the name of the target
data
A named list
metadata
A named list
buffers
A 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 )
id
A string, the comm id
data
A named list
metadata
A named list
buffers
A 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)
deep
Whether to make a deep clone.
This is a base class for widgets that use the 'controls' module.
RKernel::HasTraits
-> RKernel::Widget
-> CoreWidget
_model_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_model_name
Name of the Javascript model in the frontend
_view_module
Version of the module where the view is defined
_view_module_version
Version 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$finalize()
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)
deep
Whether 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 '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 '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
display_data(dataTable)
: dataTable method for display_data
dataTable()
: A dataTable constructor
w
A container widget or NULL
page
Number of the current page
m
Width of the object divided by 'size'
r
Remainder of the widht of the object divided by 'size'
size
Number of columns in each group for horizontal paging
iframe
An <iframe> container or NULL
b_left
Button to scroll left
b_right
Button to scroll right
b_first
Button to scroll to the first group of columns
b_last
Button to scroll to the last group of columns
dt
HTML code for the visible table
obj
The tabular object being dispayed
label
A string label that shows the columns being displayed
style
A string with CSS styling
navigator
A container widgets that contains the navigator buttons
scrollY
The vertical scroll amount
height
The height of the iframe
new()
Initialize the DataTable
dataTableClass$new(obj, size = 50, nlines = min(nrow(obj), 15), ...)
obj
The object to be displayed
size
An integer, the number of columns pre-formatted on each page.
nlines
An integer, the number of rows of 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()
clone()
The objects of this class are cloneable with this method.
dataTableClass$clone(deep = FALSE)
deep
Whether 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
value
A date.
coerce
Logical 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)
value
The 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 )
initial
An optional Date object or date string
year
An optional integer
month
An optional integer
day
An optional integer
coerce
An optional logical value
clone()
The objects of this class are cloneable with this method.
DateClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
value
The date
disabled
Boolean, whether the user can make changes
min
Minimum selectable date
max
Maximum selectable date
step
Date 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$finalize()
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)
value
A value
validate_min()
Validate the "min" field after assignment.
DatePickerClass$validate_min(min)
min
A minimum value, should be an integer number.
validate_max()
Validate the "max" field after assignment.
DatePickerClass$validate_max(max)
max
A 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)
deep
Whether 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
value
A date.
coerce
Logical 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)
value
The value assigned to the traitlet.
new()
Initialize the traitlet.
DatetimeClass$new(initial = as.POSIXct(integer(0)), coerce = TRUE)
initial
An optional POSIXct object or an object coercive into such an object
coerce
An optional logical value
clone()
The objects of this class are cloneable with this method.
DatetimeClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
value
The date and time. If non-zero length, must have valid timezone info.
disabled
Boolean, whether the user can make changes
min
Minimum selectable date and time. If non-zero length, must have valid timezone info.
max
Maximum 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$finalize()
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)
value
A value
validate_value()
Check wether "value" is within range.
DatetimePickerClass$validate_value(value)
value
A date and time to be checked for validity
validate_min()
Validate the "min" field after assignment.
DatetimePickerClass$validate_min(min)
min
A minimum date and time to be checked for validity
validate_max()
Validate the "max" field after assignment.
DatetimePickerClass$validate_max(max)
max
A 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::DatetimePicker
-> NaiveDatetimePicker
_model_name
Name of the Javascript model in the frontend
value
The date and time. If non-zero length, must have valid timezone info.
min
Minimum selectable date and time. If non-zero length, must have valid timezone info.
max
Maximum 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$finalize()
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)
value
A value
validate_value()
Check wether "value" is within range.
NaiveDatetimePickerClass$validate_value(value)
value
A 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)
deep
Whether 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_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
_view_module
Version of the module where the view is defined
_view_module_version
Version of the module where the view is defined
description_width
Width 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$finalize()
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)
deep
Whether 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_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_view_module
Version of the module where the view is defined
_view_module_version
Version of the module where the view is defined
_model_name
Name of the Javascript model in the frontend
description
An optional description string
description_tooltip
An optional description tooltip
tooltip
An optional description tooltip
description_html
Boolean, whether HTML is allowed in the description
style
A "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$finalize()
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)
deep
Whether 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)
value
A value to be assigned as the traitlet value
clone()
The objects of this class are cloneable with this method.
DictClass$clone(deep = FALSE)
deep
Whether 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()
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 'recordedplot' display_data( x, width = getOption("jupyter.plot.width", 7), height = getOption("jupyter.plot.height", 7), resolution = getOption("jupyter.plot.res", 144), 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 'display_data' update(object, ...) ## S3 method for class 'data.frame' 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 'iframe' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), 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 'recordedplot' display_data( x, width = getOption("jupyter.plot.width", 7), height = getOption("jupyter.plot.height", 7), resolution = getOption("jupyter.plot.res", 144), 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 'display_data' update(object, ...) ## S3 method for class 'data.frame' 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 'iframe' display_data( x, ..., metadata = emptyNamedList, id = attr(x, "id"), 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)
x |
An object |
... |
Optional arguments tagged by mime types with mime data |
data |
A list with named elements, containing 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 |
width |
Width of the diplayed plot |
height |
Height of the displayed plot |
resolution |
Resolution in ppi, see |
object |
An object of class "display_data" |
pointsize |
Point size, see |
scale |
The amount by which the plots are scaled in the frontend |
units |
Units of width and height, see |
An object of class "display_data"
display_data(default)
: Default method
display_data(htmlwidget)
: S3 method for html widgets
display_data(recordedplot)
: S3 method for plots saved with 'recordPlot()'
display_data(display_data)
: S3 method for "display_data" objects
display_data(update_display_data)
: S3 method for "update_display_data" objects
display_data(data.frame)
: S3 method for class 'data.frame'
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" objects
display_data(iframe)
: S3 methods for "iframe" objects
display_data(help_files_with_topic)
: S3 method for help pages
display_data(hsearch)
: S3 method for results of 'help.search()'
display_data(Widget)
: Method for jupyter widgets
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_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_model_name
Name of the Javascript model in the frontend
_dom_classes
A set of character strings that indicate the DOM classes the widget is assigned to
layout
The 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$finalize()
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)
className
Name of the class attribute
remove_class()
Remove a class attribute to the DOM element
DOMWidgetClass$remove_class(className)
className
Name of the class attribute
has_class()
Check whether the DOM element has a class attribute
DOMWidgetClass$has_class(className)
className
Name of the class attribute
clone()
The objects of this class are cloneable with this method.
DOMWidgetClass$clone(deep = FALSE)
deep
Whether 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)
type
A string, the type of event (e.g. "print")
send()
Send an event
EventManagerClass$send(event, ...)
event
A 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)
event
A string, the name of an event
handler
A function
remove
A logical value, whether the handler is to be removed
activate()
Activate handlers
EventManagerClass$activate(event = NULL, all = TRUE)
event
A string, the name of an event, ignored if 'all' is TRUE.
all
A 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)
event
A string, the name of an event, ignored if 'all' is TRUE.
all
A 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)
event
A 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)
events
A character vector with names of events
clone()
The objects of this class are cloneable with this method.
EventManagerClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
accept
A character string that defineds the accepted file type. If empty, all files are accepted.
multiple
A Boolean traitlet, whether multiple files are accepted.
disabled
A Boolean traitlet, whether the widget is disabled.
icon
A character string, the font-awesome without the 'fa-' prefix.
button_style
The string that describes the button style
style
The button style, an object of class "ButtonStyleClass".
error
A string with an error message, if applicable.
value
The uploaded data.
names
of the uploaded files
names
of the uploaded files
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$finalize()
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", ...)
description
The button description
...
Any arguments used to initialize the fields of the object
handle_buffers()
Handle buffers in message
FileUploadClass$handle_buffers(msg)
msg
A comm message
clone()
The objects of this class are cloneable with this method.
FileUploadClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
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
value
A numeric vector.
optional
Logical value, whether a length-zero value is allowed.
coerce
Logical value, whether assignments to the value field should be coerced to the appropriate type.
length
Integer number, the length the value should have.
validator()
Check the value assigned to the traitlet.
FloatClass$validator(value)
value
The value assigned to the traitlet.
new()
Initialize the traitlet.
FloatClass$new( initial = numeric(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initial
A numeric vector, the initial value for the traitlet.
coerce
coerce Logical value, whether assignments to the value field should be coerced to the appropriate type.
optional
Logical value, whether a length-zero value is allowed.
length
Integer number, the length the value should have.
clone()
The objects of this class are cloneable with this method.
FloatClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
disabled
A Boolean traitlet, whether the text widget is disabled.
continuous_update
A Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
step
A 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$finalize()
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)
deep
Whether 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
value
A 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$finalize()
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)
deep
Whether to make a deep clone.
Objects in class HasTraits have traits as components
that are correctly initialized using delayed construction with
the TraitInstance
function.
traits
A list of traits
suspended
Logical value; whether notifying observers is suspended.
observers
A 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)
tn
A string, the name of the trait.
value
The value to which the trait is set.
observe()
Install or remove an observer function.
HasTraits$observe(tn, observer, remove = FALSE)
tn
A string, the name of a trait.
observer
A callback function, which should take three arguments, (1) the trait name, (2) the object that has the trait, (3)
remove
A 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)
tn
A string, the name of a trait.
validator
A callback function
remove
A 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)
deep
Whether 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. |
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, single_blas = FALSE)
install() installspec(user = TRUE, prefix = NULL, single_blas = FALSE)
user |
Logical, whether to install the kernel in the user's home directory |
prefix |
NULL or a character string with a path prefix |
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
value
An integer vector.
optional
Logical value, whether a length-zero value is allowed.
coerce
Logical value, whether assignments to the value field should be coerced to the appropriate type.
length
Integer number, the length the value should have.
validator()
Check the value assigned to the traitlet.
IntegerClass$validator(value)
value
The value assigned to the traitlet.
new()
Initialize the traitlet.
IntegerClass$new( initial = integer(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initial
An integer vector, the initial value for the traitlet.
coerce
coerce Logical value, whether assignments to the value field should be coerced to the appropriate type.
optional
Logical value, whether a length-zero value is allowed.
length
Integer number, the length the value should have.
clone()
The objects of this class are cloneable with this method.
IntegerClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
disabled
A Boolean traitlet, whether the text widget is disabled.
continuous_update
A Boolean traitlet, whether the text widget is continuously updated upon change in the frontend.
step
An 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$finalize()
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)
deep
Whether 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
value
A 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$finalize()
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)
deep
Whether 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.
r_session
See RKernelSession
.
DAPServer
The current DAP server
new()
Initialize the kernel
Kernel$new(conn_info)
conn_info
A list with the connection info from the front-end
start_r_session()
Kernel$start_r_session()
start()
Kernel$start()
run()
Run the kernel.
Kernel$run()
poll_and_respond()
A single iteration of the kernel loop
Kernel$poll_and_respond()
clear_output()
Clear the current output cell in the frontend.
Kernel$clear_output(wait)
wait
Logical value, whether to wait until output is cleared.
stream()
Stream text to the frontend.
Kernel$stream(text, stream)
text
Text to be sent to the frontend
stream
A string to select the stream – either "stout" or "stderr"
stdout()
Stream text to the frontend via 'stdout' stream.
Kernel$stdout(text)
text
Text to be sent to the frontend
stderr()
Stream text to the frontend via 'stderr' stream.
Kernel$stderr(text)
text
Text to be sent to the frontend
r_session_msg()
Stream message created from R session process to the frontend via 'stderr' stream.
Kernel$r_session_msg(msg)
msg
The message created by the 'RKernelSession' object.
execute_result()
Send execution results to the frontend
Kernel$execute_result(data, metadata = emptyNamedList)
data
Execution result in rich format
metadata
A list with metadata
display_send()
Send rich format data to the frontend
Kernel$display_send(msg)
msg
A list with the appropriate structure. [TODO]
send_error()
Send an error message and traceback to the frontend.
Kernel$send_error(name, value, traceback)
name
A string, the error name.
value
A string, the value of the error message.
traceback
A character vector with the traceback.
send_comm()
Send a message via a comm.
Kernel$send_comm(msg)
msg
A list containing a comm message.
get_parent()
The parent of the message currently sent.
Kernel$get_parent(channel = "shell")
channel
A 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)
prompt
A prompt string
password
Logical 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)
content
A list, content provided by the debug adapter
clone()
The objects of this class are cloneable with this method.
Kernel$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript view in the frontend.
_view_module
Name of the Javascript view module in the frontend.
_view_module_version
Version of the Javascript view module in the frontend.
_model_name
Name of the Javascript model in the frontend.
align_content
An optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around", "space-evenly", "stretch"
align_items
An optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"
align_self
An optional string, if non-empty, one of "flex-start", "flex-end", "center", "baseline", "stretch"
bottom
Position from bottom, an optional string that should, if non-empty, contain a valid CSS dimension
border
An optional string with a valid CSS border specification
border_top
An optional string with a valid CSS border specification
border_right
An optional string with a valid CSS border specification
border_bottom
An optional string with a valid CSS border specification
border_left
An optional string with a valid CSS border specification
display
An optional string with a valid CSS display property
flex
An optional string with a valid CSS flex property
flex_flow
An optional string with a valid CSS flex_flow property
height
An optional string with a valid CSS height
justify_content
An optional string, if non-empty, one of "flex-start", "flex-end", "center", "space-between", "space-around".
justify_items
An optional string, if non-empty, one of "flex-start", "flex-end", or "center"
left
Position from left, an optional string that should, if non-empty, contain a valid CSS dimension
margin
An optional string, if non-empty, should be a valid CSS margin specification
max_height
An optional string, if non-emtpy, should be a valid CSS dimension
max_width
An optional string, if non-emtpy, should be a valid CSS dimension
min_height
An optional string, if non-emtpy, should be a valid CSS dimension
min_width
An optional string, if non-emtpy, should be a valid CSS dimension
overflow
An optonal string, if non-empty, should be a valid CSS overflow specification
order
An optional string, if non-empty should contain a number
padding
An optional string, if non-emtpy should be a valid CSS dimension
right
Position from right, an optional string, if non-empty, should be a valid CSS dimension
top
Position from top, an optional string, if non-empty, should be a valid CSS dimension
visibility
An optional string, if non-empty, should be either "visible" or "hidden"
width
An optional string, if non-empty, should be a valid CSS dimension
object_fit
An optional string, if non-empty, should be one of "contain", "cover", "fill", "scale-down", "none"
object_position
An optional string, if non-empty, should be a valid CSS object-position specification
grid_auto_columns
An optional string, if non-empty should be valid CSS code for the grid-auto-columns property
grid_auto_flow
An optional string, if non-empty should be valid CSS code for the grid-auto-flow property
grid_auto_rows
An optional string, if non-empty should be valid CSS code for the grid-auto-rows property
grid_gap
An optional string, if non-empty should be valid CSS code for the grid-gap property
grid_template_rows
An optional string, if non-empty should be valid CSS code for the grid-template-rows property
grid_template_columns
An optional string, if non-empty should be valid CSS code for the grid-template-columns property
grid_template_areas
An optional string, if non-empty should be valid CSS code for the grid-template-areas property
grid_row
An optional string, if non-empty should be valid CSS code for the grid-row property
grid_column
An optional string, if non-empty should be valid CSS code for the grid-column property
grid_area
An 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$finalize()
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)
nm
Name of the trait (a dummy argument)
self
The object
value
A 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)
deep
Whether 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_gap
The grid-gap CSS attribute
justify_content
The justify-content CSS attribute
align_items
The align-items CSS attribute
width
The width CSS attribute
height
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> RKernel::GridBox
-> RKernel::TemplateBase
-> AppLayout
header
Widget that appears in the header section
footer
Widget that appears in the footer section
left_sidebar
Widget that appears as left sidebar
right_sidebar
Widget that appears as right sidebar
center
Widget that appears in the center section
pane_widths
Unicode string with CSS widths for the app panes
pane_heights
Unicode string with CSS heights for the app panes
merge
Boolean, 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$finalize()
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)
deep
Whether 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$finalize()
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, ...)
nrow
A positive integer, the number of rows
ncol
A 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)
i
The rows into which the widget is to be placed
j
The columns into which the widget is to be placed
value
A widget
get_item()
Get widget from grid cells
GridspecLayoutClass$get_item(i, j)
i
The rows where the widget is located
j
The columns where the widget is located
clone()
The objects of this class are cloneable with this method.
GridspecLayoutClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> RKernel::GridBox
-> RKernel::TemplateBase
-> TwoByTwoLayout
top_left
Widget that appears on the top left
top_right
Widget that appears on the top right
bottom_left
Widget that appears on the bottom left
bottom_right
Widget that appears on the bottom right
merge
Boolean, 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$finalize()
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)
deep
Whether 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
value
A list
validator()
A function that checks the validity of an assigned value, i.e. whether the assigned value is a list
ListClass$validator(value)
value
A value to be assigned as the traitlet value
clone()
The objects of this class are cloneable with this method.
ListClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
This function is deprecated. Use envBrowser
instead.
ls_str(pos = -1, name, envir, all.names = FALSE, pattern, mode = "any")
ls_str(pos = -1, name, envir, all.names = FALSE, pattern, 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
format
A string, giving the graphics fromat.
value
A 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$finalize()
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)
url
A character string
width
A character string with CSS width specification
height
A character string with CSS height specification
from_file()
Create media widget from file
MediaWidgetClass$from_file(filename)
filename
A character string
on_change()
Add or remove a handler to be called if value is changed.
MediaWidgetClass$on_change(handler, remove = FALSE)
handler
A function that is called when the button is clicked.
remove
Logical value, whether the handler is to be removed.
new()
Initialize an object
MediaWidgetClass$new(from_file = NULL, from_url = NULL, ...)
from_file
An optional character string, name of the file from which to initialize the widget.
from_url
An 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::MediaWidget
-> ImageWidget
_view_name
Name of the Javascript view in the frontend.
_model_name
Name of the Javascript model in the frontend.
format
A string, giving the graphics fromat.
width
A string, describing the width in CSS language, e.g. "480px".
height
A 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$finalize()
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)
filename
A character string
width
A character string with CSS width specification
height
A character string with CSS height specification
clone()
The objects of this class are cloneable with this method.
ImageWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::MediaWidget
-> VideoWidget
_view_name
Name of the Javascript view in the frontend.
_model_name
Name of the Javascript model in the frontend.
format
A string, giving the video fromat.
width
A string, describing the width in CSS language, e.g. "480px".
height
A string, describing the height in CSS language, e.g. "480px".
autoplay
Boolean, when TRUE the video starts when it is displayed.
loop
Boolean, when TRUE the video restarts after finishing.
controls
Boolean, 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$finalize()
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)
filename
A character string
width
A character string with CSS width specification
height
A character string with CSS height specification
clone()
The objects of this class are cloneable with this method.
VideoWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::MediaWidget
-> AudioWidget
_view_name
Name of the Javascript view in the frontend.
_model_name
Name of the Javascript model in the frontend.
format
A string, giving the audio fromat.
autoplay
Boolean, when TRUE the video starts when it is displayed.
loop
Boolean, when TRUE the video restarts after finishing.
controls
Boolean, 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$finalize()
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)
deep
Whether 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. |
enclos |
An enclosing environment. |
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> OutputWidget
_view_name
Name of the Javascript model view in the frontend
_model_name
Name of the Javascript model in the frontend
_view_module
Name of the module where the view is defined
_model_module
Name of the Javascript module with the model
_view_module_version
Version of the module where the view is defined
_model_module_version
Version of the module where the model is defined
msg_id
Unicode string with the id of the last message sent to the frontend.
outputs
A 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$finalize()
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, ...)
append_output
Logical, whether existing output should be appended to or overwritten.
...
Any other arguments, passed to the superclass initializer.
envir
An environment, where expressions are evaluated.
use_display
Logical, whether the display mechanism is used internally for output streams.
display()
A variant of display
for output within a display widget.
OutputWidgetClass$display(...)
...
Further arguments, passed on to the 'evaluate' method of the Context
class,
clear()
Clear the output
OutputWidgetClass$clear(wait = FALSE)
wait
Logical, whether to wait for the frontend to clear the output.
stdout()
OutputWidgetClass$stdout(text)
stderr()
OutputWidgetClass$stderr(text)
clone()
The objects of this class are cloneable with this method.
OutputWidgetClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
interval
An Integer traitlet, the time interval between between two steps.
step
An Integer traitlet, the step size.
_playing
A Boolean traitlet, indicates wether the player widget is running.
playing
A Boolean traitlet, indicates wether the player widget is running.
_repeat
A Boolean traitlet, indicates wether the the repeat toggle is on.
repeat
A Boolean traitlet, indicates wether the the repeat toggle is on.
show_repeat
A 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$finalize()
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)
deep
Whether 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. |
enclos |
An enclosing environment. |
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> RKernel::HTML
-> SVGWidget
context
A Context instance or NULL
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$finalize()
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, envir = new.env())
...
Arguments passed to the superclass initializer
width
A character string, giving the width as a CSS property
height
A character string, giving the height as a CSS property
envir
An optional environment within which expressions are evaluated
activate()
SVGWidgetClass$activate()
suspend()
SVGWidgetClass$suspend()
render()
SVGWidgetClass$render()
clone()
The objects of this class are cloneable with this method.
SVGWidgetClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
bar_color
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedIntWidget
-> IntProgress
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
orientation
Orientation of the progress bar, either "horizontal" or "vertical"
bar_style
General style of the progress bar, either "successs", "info", "warning" or "danger"
style
Styling 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedFloatWidget
-> FloatProgress
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
orientation
Orientation of the progress bar, either "horizontal" or "vertical"
bar_style
General style of the progress bar, either "successs", "info", "warning" or "danger"
style
Styling 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$finalize()
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)
deep
Whether 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
value
An R6 object
class
The R6 class of value
validator()
Checks wether value
has the corret class
R6TraitClass$validator(value)
value
A value about to be assigned to the trait.
new()
Initialize an object
R6TraitClass$new(Class, ...)
Class
Class of the object
...
Values used for initialization
clone()
The objects of this class are cloneable with this method.
R6TraitClass$clone(deep = FALSE)
deep
Whether 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. |
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
_titles
A dictionary of strings, for internal use only
titles
A dictionary of strings, exposed since ipywidgets 8.
selected_index
An 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$finalize()
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)
index
An integer number.
set_title()
Set the title of one of the elements.
SelectionContainerClass$set_title(index, title)
index
The index number of the element to be changed.
title
A character string, the intended title.
get_title()
Get the title of one of the elements.
SelectionContainerClass$get_title(index)
index
The index number of the element to be enquired.
new()
An initializer function
SelectionContainerClass$new(children = list(), ...)
children
A 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> Accordion
_model_name
Name of the Javascript model in the frontend.
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> Tab
_model_name
Name of the Javascript model in the frontend.
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::Box
-> Stack
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
required_version
Minimum 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$finalize()
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)
deep
Whether 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_labels
A unicode vector of option labels.
index
An integer that refers to currently selected item.
value
The 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$finalize()
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)
index
The index to be checked.
new()
Initialiser
SelectionWidgetClass$new(options, value, ...)
options
A named vector or a vector coerceable into a character vector.
value
Name of a selectable option.
...
Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
SelectionWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::SelectionWidget
-> Dropdown
_model_name
Name of the Javascript model in the frontend.
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::SelectionWidget
-> RadioButtons
_model_name
Name of the Javascript model in the frontend.
_view_name
Name 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::SelectionWidget
-> ListboxSelect
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
rows
An 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> ToggleButtonsStyle
_model_name
Name of the Javascript model in the frontend.
button_width
A unicode string, the width in CSS language
font_weight
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::SelectionWidget
-> ToggleButtons
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
tooltips
A unicode vector with tooltips.
icons
A unicode vector with icon specs.
style
A TobbleButtonStyle widget
button_style
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::SelectionWidget
-> SelectionSlider
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> MultipleSelectionWidget
_options_labels
A unicode string vector with labels
index
An integer vector of indices of currenlty selected elements.
value
The 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$finalize()
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)
index
An index, the index to be checked.
new()
Initialiser
MultipleSelectionWidgetClass$new(options, value, ...)
options
A named vector or a vector coerceable into a character vector.
value
Names of selectable options.
...
Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
MultipleSelectionWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::MultipleSelectionWidget
-> ListboxSelectMultiple
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
rows
An 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::MultipleSelectionWidget
-> SelectionRangeSlider
_model_name
Name of the Javascript model in the frontend.
_view_name
Name of the Javascript view in the frontend.
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
style
A SliderStyle widget
behavior
A 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$finalize()
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)
index
An index, the index to be checked.
new()
Initialiser
SelectionRangeSliderClass$new(options, value, ...)
options
A named vector or a vector coerceable into a character vector.
value
Names of selectable options.
...
Any other arguments, ignored.
clone()
The objects of this class are cloneable with this method.
SelectionRangeSliderClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
Sidecar widgets - work only with Jupyter Lab
Sidecar(...)
Sidecar(...)
... |
Arguments passed to the inializer |
Sidecar()
: A constructor for sidebar widgets
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::OutputWidget
-> Sidecar
_model_name
Name of the Javascript model in the frontend
_model_module
Name of the Javascript frontend module
_model_module_version
Version of the Javascript frontend module
_view_name
Name of the Javascript view in the frontend
_view_module
Name of the Javascript frontend view module
_view_module_version
Version of the the Javascript view module
title
A unicode string, the title of the widget.
anchor
A 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$finalize()
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$initialize()
RKernel::OutputWidget$stderr()
RKernel::OutputWidget$stdout()
clone()
The objects of this class are cloneable with this method.
SidecarClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript frontend model
handle_color
Unicode 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedIntWidget
-> IntSlider
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
step
An Integer
traitlet, the minimal step size per slider movement
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
readout_format
A unicode string, the format specification
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
disabled
A logical value, whether the slider is disabled
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedIntRangeWidget
-> IntRangeSlider
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
step
An Integer
traitlet, the minimal step size per slider movement
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
readout_format
A logical value, whether values should be updated as the slider is moved by the user
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
disabled
A logical value, whether the slider is disabled
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedFloatWidget
-> FloatSlider
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
step
A Float
traitlet, the minimal step size per slider movement
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
readout_format
A logical value, whether values should be updated as the slider is moved by the user
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
disabled
A logical value, whether the slider is disabled
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedFloatRangeWidget
-> FloatRangeSlider
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
step
A Float
traitlet, the minimal step size per slider movement
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
readout_format
A logical value, whether values should be updated as the slider is moved by the user
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
disabled
A logical value, whether the slider is disabled
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::BoundedLogFloatWidget
-> FloatLogSlider
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
step
A Float
traitlet, the minimal step size per slider movement
orientation
A Unicode string, either "horizontal" or "vertical"
readout
A logical value, whether the value should be showns (read out)
readout_format
A logical value, whether values should be updated as the slider is moved by the user
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
disabled
A Boolean
traitlet, whether the slider is disabled
base
A Float
traitlet, the base of the logarithm
style
A SliderStyle widget
behavior
A 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$finalize()
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)
deep
Whether to make a deep clone.
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
enum
a character vector
optional
A logical value, whether value can be empty.
validator()
Check whether the assigned vector is one of the allowed enumerated strings.
StrEnumClass$validator(value)
value
A value to be assigned to the trait
new()
Initialize the trait.
StrEnumClass$new(enum, default = character(0), optional = FALSE)
enum
A character vector of permitted enumerated strings.
default
The default value
optional
Logical can the value be empty?
clone()
The objects of this class are cloneable with this method.
StrEnumClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
background
The background color
font_size
The font size
text_color
The text color
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> RKernel::StringStyle
-> LabelStyle
_model_name
Name of the Javascript model in the frontend
font_family
The font family
font_style
The font style
font_variant
The font variant
font_weight
The font weight
text_decoration
The text decoration
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> RKernel::StringStyle
-> TextStyle
_model_name
Name of the Javascript model in the frontend
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> RKernel::StringStyle
-> HTMLStyle
_model_name
Name of the Javascript model in the frontend
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DescriptionStyle
-> RKernel::StringStyle
-> HTMLMathStyle
_model_name
Name of the Javascript model in the frontend
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> StringWidget
_model_name
Name of the Javascript model in the frontend
value
A unicode vector
placeholder
A 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> HTML
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
style
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> HTMLMath
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
style
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> Label
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
style
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> Textarea
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
disabled
A logical value, whether the slider is disabled
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
rows
An integer, the number of rows
style
The 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$finalize()
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.
TextareaClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> TextWidget
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
disabled
A logical value, whether the slider is disabled
continuous_update
A logical value, whether values should be updated as the slider is moved by the user
style
The 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$finalize()
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()
clone()
The objects of this class are cloneable with this method.
TextWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> RKernel::TextWidget
-> PasswordWidget
_model_name
Name of the Javascript model in the frontend
_view_name
Name 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$finalize()
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()
clone()
The objects of this class are cloneable with this method.
PasswordWidgetClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::StringWidget
-> RKernel::TextWidget
-> Combobox
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
options
A unicode vector, the available options
ensure_option
A 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$finalize()
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()
clone()
The objects of this class are cloneable with this method.
ComboboxClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
value
A list of tags
placeholder
A placeholder string
allowed_tags
Optional list with allowed tags.
allow_duplicates
Logical, whether duplicate tags are allowed.
required_version
Minimum 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$finalize()
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)
value
A 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::TagsInputBase
-> TagsInput
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend.
value
A list of tags as unicode strings
tag_style
The 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::TagsInputBase
-> ColorsInput
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend.
value
A 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$finalize()
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)
deep
Whether 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$finalize()
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)
value
A character string with one or more tags.
new()
Initializer function
NumbersInputBase$new(...)
...
Arguments passed to the superclass initializer
value
An initial value
clone()
The objects of this class are cloneable with this method.
NumbersInputBase$clone(deep = FALSE)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> RKernel::TagsInputBase
-> RKernel::TagsInput
-> RKernel::ColorsInput
-> FloatsInput
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend.
value
A list of numeric tags
format
The 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$finalize()
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)
deep
Whether 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$finalize()
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)
deep
Whether to make a deep clone.
A class and constructor of time traitlets.
RKernel::Trait
-> TimeClass
value
A date.
coerce
Logical 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)
value
The value assigned to the traitlet.
new()
Initialize the traitlet.
TimeClass$new(initial = as.POSIXct(integer(0)), coerce = TRUE)
initial
An optional POSIXct object or an object coercive into such an object
coerce
An optional logical value
clone()
The objects of this class are cloneable with this method.
TimeClass$clone(deep = FALSE)
deep
Whether 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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript view in the frontend
value
The date and time. If non-zero length, must have valid timezone info.
disabled
Boolean, whether the user can make changes
min
Minimum selectable date and time. If non-zero length, must have valid timezone info.
max
Maximum 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$finalize()
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)
value
A date and time to be checked for validity
validate_min()
Validate the "min" field after assignment.
TimePickerClass$validate_min(min)
min
A minimum date and time to be checked for validity
validate_max()
Validate the "max" field after assignment.
TimePickerClass$validate_max(max)
max
A 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)
deep
Whether 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 'Bytes' to_json(x, ...) ## 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, ...)
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 'Bytes' to_json(x, ...) ## 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, ...)
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(Bytes)
: S3 method for 'BytesClass' objects
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
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_name
Name of the Javascript model in the frontend
font_family
The font family
font_size
The font size
font_style
The font style
font_variant
The font variant
font_weight
The font weight
text_color
The text color
text_decoration
The text decoration
required_version
Minimum 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$finalize()
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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> RKernel::ValueWidget
-> ToggleButton
_model_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
value
Boolean, whether the box is checked
tooltip
A tooltip
description
A button description
disabled
Boolean, whether the button is disabled
icon
An icon (a fontawesome icon name)
button_style
The string that describes the button style
style
The 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$finalize()
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)
deep
Whether 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.
value
The value of the trait
observers
A list of functions to be called as notification callbacks
validators
A list of functions to check the validity of a
set()
Set the value of the trait
TraitClass$set(value, notify = FALSE)
value
The value to be set
notify
Logical; 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)
initial
The initial value
coerce
Logical; 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)
deep
Whether 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
coerce
Logical value, whether values should be coerced to character strings.
length
Length of the unicode character vector
value
The value of the unicode character vector
optional
A logical value, whethe valuer can be empty.
validator()
A validator function
UnicodeClass$validator(value)
value
The value to be assigned
new()
Initialize an object
UnicodeClass$new( initial = character(0), coerce = TRUE, optional = length(initial) == 0, length = 1L )
initial
An initial value
coerce
Logical value, whether values should be coerced to character stringes
optional
Logical value, whether the value may be empty
length
Integer, the intended length of the unicode vector
clone()
The objects of this class are cloneable with this method.
UnicodeClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
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_name
Name of the Javascript model in the frontend
_view_name
Name of the Javascript model view in the frontend
indent
Boolean, whether to indent the indicator widget
value
Boolean, whether the validity should be indicated
readout
Text 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$finalize()
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)
deep
Whether to make a deep clone.
A base class for widgets that are connected with values
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::DOMWidget
-> RKernel::DescriptionWidget
-> ValueWidget
value
A 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$finalize()
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, ...)
value
A 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)
handler
A handler function
remove
A 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)
deep
Whether 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
value
A list
class
A 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)
value
A value to be assigned as the traitlet value
new()
VectorClass$new(class = NULL, ...)
class
String, optional common class
...
Arguments passed to the superclass initializer
clone()
The objects of this class are cloneable with this method.
VectorClass$clone(deep = FALSE)
deep
Whether 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 DataTable 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)), ...)
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)), ...)
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)
: Dibble 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_name
Name of the Javascript model in the frontend.
source
A 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.
target
A 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$finalize()
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, ...)
source
A list with two elements, a widget and the name of a trait(let).
target
A 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)
deep
Whether to make a deep clone.
RKernel::HasTraits
-> RKernel::Widget
-> RKernel::CoreWidget
-> RKernel::WidgetLink
-> DirectionalLink
_model_name
Name 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$finalize()
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)
deep
Whether 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_id
Identifyer of the frontend Javascript object
_model_name
Name of the Javascript model in the frontend
_model_module
Name of the Javascript module with the model
_model_module_version
Version of the module where the model is defined
_view_name
Name of the Javascript model view in the frontend
_view_module
Version of the module where the view is defined
_view_module_version
Version of the module where the view is defined
_view_count
Number of views that refer to the same frontend model object
traits_to_sync
Names of the traits to be synchronized with the frontend
sync_suspended
Logical value, whether synchronization is suspended
custom_msg_callbacks
A list of functions to be called on receiving a message
event_callbacks
A list of functions to be called on an event
displayed_callbacks
A list of functions to be called when the widget
_comm
The 'comm' connecting to the frontend or NULL
required_version
Minimum required ipywidgets version in which the current widget class is supported.
comm
The 'comm' connecting the frontend (as an active binding)
new()
Initialize an object
WidgetClass$new(..., open = TRUE)
...
Values used for initialization
open
Logical, whether a connection with the frontend should be opened
open()
Open a connection to the frontend
WidgetClass$open()
finalize()
Finalize the object
WidgetClass$finalize()
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)
keys
Keys/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)
state
A list of values for the synchronized traits
send_state()
Send updated traits to the frontend
WidgetClass$send_state(keys = NULL, drop_defaults = FALSE)
keys
Keys/names of the traits to be updated in the frontend
drop_defaults
Logical value, not yet used
send()
Send content and binary buffers to the fronend
WidgetClass$send(content, buffers = NULL)
content
Some user-defined information to be send to the frontend
buffers
Some 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)
comm
The 'comm' object that is opened
data
Data sent by the frontend
handle_comm_msg()
Handle a message from the frontend
WidgetClass$handle_comm_msg(comm, msg)
comm
The 'comm' object via which the message is received
msg
Message 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)
msg
A comm message
handle_custom_msg()
Call the custom message handlers
WidgetClass$handle_custom_msg(content)
content
The data received
on_msg()
Install a handler for messages being received
WidgetClass$on_msg(handler, remove = FALSE)
handler
A handler function
remove
Logical, should the handler be removed?
on_event()
Install a handler for events in the frontend
WidgetClass$on_event(event, handler, remove = FALSE)
event
A character that describes the event
handler
A handler function
remove
Logical, should the handler be removed?
handle_event()
Call the installed event handlers
WidgetClass$handle_event(event, args)
event
A string that describes the event
args
A 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)
handler
A handler function
remove
Logical, 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)
msg
The message
buffers
Raw 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)
deep
Whether to make a deep clone.