text stringlengths 1 1.02k | repo_name stringclasses 531
values |
|---|---|
The websockets Package
Bryan W. Lewis
blewis@illposed.net
November 1, 2011
1 Introduction
HTML 5 websockets define an efficient socket-like communication protocol for the web. The
websockets package is a native websocket implementation for R that supports most of the draft
IETF protocols in use today by web browsers. Thew... | R-Websockets |
layerslike.NET,Java, andwebserversnormallyusedforsuchinteraction. Insomecases, websockets
can be much more efficient than traditional Ajax schemes for interacting with clients over web
protocls. Websockets also simplify service scalability in many cases.
The websockets package provides three primary capabilities:
1. An w... | R-Websockets |
The websockets Package
2 Running an R websockets server, step by step
The websockets package includes a server function that can initiate and respond to websocket
and HTTP events over a network connection (websockets are an extension of standard HTTP). All
R/Websocket server applications share the following basic recpi... | R-Websockets |
Javascript.
2.2 Initialize a websocket server withcreate_server
The R/Websocket service is initialized by a call to thecreate_server function. (The initialization
method calledcreateContext from older versions of the package is still supported.) The function
takes two arguments, a network port to listen on, and an opti... | R-Websockets |
The websockets Package
package demo available fromdemo(’websockets’) serves clients the filebasic.html located in the
package installation path. Additional examples are provided below. See the Rook package for an
alternate comprehensive R web service.
2.3 Set callback functions to respond to events
Clients may connect t... | R-Websockets |
are termed “callbacks.”
The set_callback function may be used to define a callback function in the server environment
returned bycreate_server. (It simply assigns the functions in that environment.)
The receive callback function must take precisely three parameters that are filled in by the
library with values correspond... | R-Websockets |
Theclosed andreceive functionsmusteachtakeoneargument, a WS websocketclientassociated
with the event, represented as an R list.
The following example established function sends a text message to each newly-established
connection:
f = function(WS) {
websocket_write("Hello there!", WS)
}
set_callback("established", f, se... | R-Websockets |
The websockets Package
g = function(DATA, WS, ...) {
websocket_write(DATA, WS)
}
setCallback("receive", g, server)
2.4 Accept requests from web clients
Javascript and other web script clients can very easily interact with the Rwebsockets library
directly from most browsers. The listing below presents a very basic examp... | R-Websockets |
example).
2.5 Service the socket interface withservice
Incoming websocket events are queued. The service function processes events on a first-come,
first-served basis. Theservice function processes each event by invoking the appropriate callback
function. It returns after a configurable time out if there are no events to ... | R-Websockets |
The websockets Package
The service function timeout value prevents the R session from spinning and consuming lots of
CPU time. See theservice help page for more information.
2.6 Sending data to clients
The websocket_write and websocket_broadcast functions are used to send data to connected
clients. The websocket_broadc... | R-Websockets |
Note the use of the double bracket indexing operator to select a single list element
from theclient_sockets list.
2.7 Close the server when done
Servers should be closed when done as follows:
websocket_close(server)
2.8 HTTP convenience functions
The websockets package includes two convenience function closures for ser... | R-Websockets |
The websockets Package
content=/quotesingle.ts1<html><body>
<script>
socket = new WebSocket("ws://localhost:7681", "chat");
try {
socket.onmessage = function got_packet(msg) {
document.getElementById("output").textContent = msg.data;
}
catch(ex) {document.getElementById("output").textContent = "Error: " + ex;}
</script... | R-Websockets |
on using the package as a generic HTTP service below for more comprehensive examples.
3 R as a websocket client
The websockets package includes the websocket function for creating clients that can interact
with other websocket services. It supports protocol versions 00 and newer protocols up to at least
version 08 (ver... | R-Websockets |
The websockets Package
> library(websockets)
> client = websocket("ws://echo.websocket.org", port=80)
> set_callback("receive", function(DATA,WS,HEADER) cat(rawToChar(DATA)), client)
> websocket_write("Testing, testing", client)
[1] 1
> service(client)
Testing, testing
>websocket_close(client)
See thewebsocket man page... | R-Websockets |
two helper functions for use in HTTP callbacks:
• http_vars(socket, header)
Parse the HTTP header for GET or POST variables, returning them in a list.
• http_response(socket, status, content_type, content)
Write a well-formed HTTP response back to the client socket, closing the connection when
done.
The following examp... | R-Websockets |
The websockets Package
library("websockets")
library("caTools")
library("quantmod")
httpd = function(socket, header) {
body = "<html><body><form>Ticker: <input type=/quotesingle.ts1text/quotesingle.ts1name=/quotesingle.ts1symbol/quotesingle.ts1/></form>"
vars = http_vars(socket, header)
if(!is.null(vars)) {
getSymbols(... | R-Websockets |
5.1 Binary data
Binary data is supported by IETF websocket protocol versions greater than 00. Thewebsockets
package supports the older 00 protocol with ASCII-only data, as well as binary data transfers with
newer clients. At the date of this writing, the only commonly available web browser supporting
the new protocols ... | R-Websockets |
The websockets Package
5.2 Setting generic HTTP function handler callbacks
Assign a generic HTTP handler withset_callback function using the callback name “static” as
in the following example:
hello = function(socket, header) {
http_response(socket,content=charToRaw("HELLO"))
}
server = create_server(port=9999)
set_cal... | R-Websockets |
Extensions as specified by the IETF draft specification are not yet supported.
High-level control of the data framing headers are not yet exposed to users, but will be in a
future package version.
9 | R-Websockets |
The websockets Package
Bryan W. Lewis
blewis@illposed.net
November 1, 2011
1 Introduction
HTML 5 websockets define an efficient socket-like communication protocol for the web. The
websockets package is a native websocket implementation for R that supports most of the draft
IETF protocols in use today by web browsers. Thew... | R-Websockets |
layerslike.NET,Java, andwebserversnormallyusedforsuchinteraction. Insomecases, websockets
can be much more efficient than traditional Ajax schemes for interacting with clients over web
protocls. Websockets also simplify service scalability in many cases.
The websockets package provides three primary capabilities:
1. An w... | R-Websockets |
The websockets Package
2 Running an R websockets server, step by step
The websockets package includes a server function that can initiate and respond to websocket
and HTTP events over a network connection (websockets are an extension of standard HTTP). All
R/Websocket server applications share the following basic recpi... | R-Websockets |
Javascript.
2.2 Initialize a websocket server withcreate_server
The R/Websocket service is initialized by a call to thecreate_server function. (The initialization
method calledcreateContext from older versions of the package is still supported.) The function
takes two arguments, a network port to listen on, and an opti... | R-Websockets |
The websockets Package
package demo available fromdemo(’websockets’) serves clients the filebasic.html located in the
package installation path. Additional examples are provided below. See the Rook package for an
alternate comprehensive R web service.
2.3 Set callback functions to respond to events
Clients may connect t... | R-Websockets |
are termed “callbacks.”
The set_callback function may be used to define a callback function in the server environment
returned bycreate_server. (It simply assigns the functions in that environment.)
The receive callback function must take precisely three parameters that are filled in by the
library with values correspond... | R-Websockets |
Theclosed andreceive functionsmusteachtakeoneargument, a WS websocketclientassociated
with the event, represented as an R list.
The following example established function sends a text message to each newly-established
connection:
f = function(WS) {
websocket_write("Hello there!", WS)
}
set_callback("established", f, se... | R-Websockets |
The websockets Package
g = function(DATA, WS, ...) {
websocket_write(DATA, WS)
}
setCallback("receive", g, server)
2.4 Accept requests from web clients
Javascript and other web script clients can very easily interact with the Rwebsockets library
directly from most browsers. The listing below presents a very basic examp... | R-Websockets |
example).
2.5 Service the socket interface withservice
Incoming websocket events are queued. The service function processes events on a first-come,
first-served basis. Theservice function processes each event by invoking the appropriate callback
function. It returns after a configurable time out if there are no events to ... | R-Websockets |
The websockets Package
The service function timeout value prevents the R session from spinning and consuming lots of
CPU time. See theservice help page for more information.
2.6 Sending data to clients
The websocket_write and websocket_broadcast functions are used to send data to connected
clients. The websocket_broadc... | R-Websockets |
Note the use of the double bracket indexing operator to select a single list element
from theclient_sockets list.
2.7 Close the server when done
Servers should be closed when done as follows:
websocket_close(server)
2.8 HTTP convenience functions
The websockets package includes two convenience function closures for ser... | R-Websockets |
The websockets Package
content=/quotesingle.ts1<html><body>
<script>
socket = new WebSocket("ws://localhost:7681", "chat");
try {
socket.onmessage = function got_packet(msg) {
document.getElementById("output").textContent = msg.data;
}
catch(ex) {document.getElementById("output").textContent = "Error: " + ex;}
</script... | R-Websockets |
on using the package as a generic HTTP service below for more comprehensive examples.
3 R as a websocket client
The websockets package includes the websocket function for creating clients that can interact
with other websocket services. It supports protocol versions 00 and newer protocols up to at least
version 08 (ver... | R-Websockets |
The websockets Package
> library(websockets)
> client = websocket("ws://echo.websocket.org", port=80)
> set_callback("receive", function(DATA,WS,HEADER) cat(rawToChar(DATA)), client)
> websocket_write("Testing, testing", client)
[1] 1
> service(client)
Testing, testing
>websocket_close(client)
See thewebsocket man page... | R-Websockets |
two helper functions for use in HTTP callbacks:
• http_vars(socket, header)
Parse the HTTP header for GET or POST variables, returning them in a list.
• http_response(socket, status, content_type, content)
Write a well-formed HTTP response back to the client socket, closing the connection when
done.
The following examp... | R-Websockets |
The websockets Package
library("websockets")
library("caTools")
library("quantmod")
httpd = function(socket, header) {
body = "<html><body><form>Ticker: <input type=/quotesingle.ts1text/quotesingle.ts1name=/quotesingle.ts1symbol/quotesingle.ts1/></form>"
vars = http_vars(socket, header)
if(!is.null(vars)) {
getSymbols(... | R-Websockets |
5.1 Binary data
Binary data is supported by IETF websocket protocol versions greater than 00. Thewebsockets
package supports the older 00 protocol with ASCII-only data, as well as binary data transfers with
newer clients. At the date of this writing, the only commonly available web browser supporting
the new protocols ... | R-Websockets |
The websockets Package
5.2 Setting generic HTTP function handler callbacks
Assign a generic HTTP handler withset_callback function using the callback name “static” as
in the following example:
hello = function(socket, header) {
http_response(socket,content=charToRaw("HELLO"))
}
server = create_server(port=9999)
set_cal... | R-Websockets |
Extensions as specified by the IETF draft specification are not yet supported.
High-level control of the data framing headers are not yet exposed to users, but will be in a
future package version.
9 | R-Websockets |
1
T he Lua language (v5. 1)
Reserved identifiers and comments
and break do else elseif end false for function if in
local nil not or repeat return then true until while
-- ... comment to end of line -- [=[ ]=] multi line comment (zero or multiple '=' are va lid)
_X is "reserved"(by convention) for constants (with... | quarto-web |
\a bell \b backspace \f form feed \n newline \r return \t horiz. tab \v vert. tab
\\ backslash \" d. quote \' quote \[ sq. bracket \] sq. bracket \ddd decimal (up to 3 digits)
Operators, decreasing precedence
^ (right associative, math library required)
not # (length of strings and tables) - (unary) ... | quarto-web |
a, b = 4, 5, "6" excess values on right hand side ("6") are evaluated but discarded
a, b = "there" for missing values on right hand side nil is assumed
a = nil destroys a; its contents are eligible for garbage collection if unreferenced .
a = z if z is not defined it is nil , so nil is assigned to a (destroying it... | quarto-web |
break exits loop ; must be last statement in block .
Table constructors
t = {} creates an empty table and assigns it to t
t = {"yes", "no", "?"} simple array; elements aret[1] , t[2] , t[3] .
t = { [1] = "yes", [2] = "no", [3] = "?" } same as above, but with explicit fields
t = {[ -900] = 3, [900] = 4} sparse array ... | quarto-web |
function ( [args , ] ... ) body [return values ]end variable argument list , in body accessed as...
function t.name ( args )body [ return values ] end shortcut for t.name = function ...
function obj :name ( args )body [ return values ] end object function , get s obj as additional first argument self
Func tion c... | quarto-web |
rawget (t, i) gets t[i] of a tab le without invoking metamethods
rawset (t, i, v) sets t[i] = v on a table without invo king metamethods
rawequal (t1, t2) returns bo olean (t1 == t2) without invoking metamethods
Metatable fields (for tables and userdata)
__add , __sub sets handler h(a, b) for ' +' and for bina... | quarto-web |
existing field
__call sets handler h(f, ...) for function call (using the
object as a function)
__tostring sets handler h(a) to convertto string,e.g.for
print()
__gc sets finalizer h(ud) for userdata (has to be set
from C)
__mode table mode: 'k' = weak keys; 'v' = weak
values; 'kv' = both.
__metatable sets va... | quarto-web |
_VERSION global variable containing the interpreter's version ( e.g. "Lua 5. 1")
Loading and executing
require (pkgname) loads a package, raises error if it can 't be loaded
dofile ([filename]) loads and executes the contents of filename [default: standard input];returns its returned
values.
load (func [, chu... | quarto-web |
of h() as error message, if any .
Simple output and error feedback
print ( args ) prints each of the pas sed args to stdout using tostring () (see below)
error (msg [, n]) terminates the program or the last protected call (e.g. pcall() ) with error message msg quoting
level n [default: 1, current function]
asse... | quarto-web |
unpack (t) returns t[1] .. t[n] (n = #t) as separate values
Iterators
ipairs (t) returns an iterator getting index, value p airs of array t in num erical order
pairs (t) returns an iterator getting key, value pairs of table t in an unspecified order
next (t [, inx]) if inx is nil [default] returns first in... | quarto-web |
2
Garbage collection
collectgarbage ( opt [, arg] ) generi c interface to the garbage collector ; opt defines function performed.
Modules and the package lib rary [packag e]
module (name, ...) creates module name. If there is a table in package.loaded[name] , this table is the module.
Otherwise, if there is a gl... | quarto-web |
package. preload a table to store loaders for specific modules (see require)
package. seeall (module) sets a metatable for module with its __index field referring to the global environment
T he coroutine library [coro utine]
coroutine.create (f) creates a new coroutine with Lua function f() as body and returns... | quarto-web |
coroutine.running () returns the running coroutine or nil when called by the main thread
coroutine.wrap (f) creates a new coroutine with Lua function f as body and returns a function; t his function will
act as coroutine.resume() without the first argument and the first return value, propagating
any errors.
T he... | quarto-web |
separated by strin g s;returns empty string if no elements exist or i > j.
T he math ematical library [math]
Basic operations
math.abs (x) returns the absolute value of x
math.mod (x, y) returns the remainder of x / y as a rounded-down integer, for y ~= 0
math.floor (x) returns x roun ded down to the nearest in... | quarto-web |
math.log10 (x) returns the base -10 logarithm of x, for x >= 0
Trigonometrical
math.deg (a) converts angle a from radians to degree s
math.rad (a) converts angle a from degrees to radians
math.pi constant containi ng the value of pi
math.sin (a) returns the sine of angle a (measured in radians)
math.cos (a) r... | quarto-web |
math.ldexp (x, y) returns x * (2 ^ y) with x = normalized fraction, y = expo nent of 2
Pseudo -random numbers
math.random ([n [, m]) returns a pseudo -random number in range [0, 1 ] if no arguments given; in range [1, n] if n is
given, in range [ n, m ] if both n and m are passed.
math.randomseed (n) sets a seed... | quarto-web |
string.sub (s, i [, j])returns the substring of s from position i to j [default: -1] inclusive
string.rep (s, n) returns a string made of n concatenated copies of string s
string.upper (s) returns a copy o f s converted t o uppercase according to locale
string.lower (s) returns a copy of s converted t o lowercase... | quarto-web |
string.format (s [, args ]) returns a copy of s where formatting directives beginning with ' % ' are replaced by the value of
arguments args , in th e given order (see Formatting directives below)
Formatting directives for string.format
% [ flags ] [ field_width ] [ .precision ] type
Formatting field types
%d d... | quarto-web |
+ prepends sign (only applies to numbers)
(space ) prepends sig n if negative, else blank space
# adds "0x" before %x , force decimal p oin t for %e , %f , leaves trailing zeros for %g
Formatting field width and precision
n puts at least n (<100) characters, pad with blanks
0n puts at least n (<100) characters, l... | quarto-web |
str ing.format("<%9.4f>", math.pi) < 3.1416>
string.format("<%c>", 64) <@>
string.format("<% .4s>", "goodbye") <good>
string.format("%q", [[she said "hi"]]) "she said \"hi \"" | quarto-web |
3
Finding, replacing, iterating (for the Patterns see below)
string.find (s, p [, i [, d]]) returns first and last position of pattern p in string s, or nil if not found, starting search at
position i [default: 1]; returns captures as extra results. If d is true, treat pattern as plain string .
string.gmatch (s, ... | quarto-web |
substitutions made as second result.
string.match (s, p [, i]) returns captures of pattern p in string s (or the whole match if p specifies no captures ) or nil if
p does not match s; s tart s search at position i [default: 1] .
Patterns and pattern items
General pattern format: pattern_item [ pattern_items ]
c... | quarto-web |
^ anchors pattern to start of string, must b e the first item in the pattern
$ anchors pattern to end of string, must be the last item in the pattern
C aptures
(pattern ) stores substring matching pattern as capture %1 .. %9 , in order of opening parentheses
() stores cur rent string position as capture
Pattern c... | quarto-web |
% x if x is a symbol the symbol itself x if x not in ^$()%.[]*+ -? the character itself
[set ] any character in any of the given classes; can also
be a range [c1 -c2 ], e. g. [a-z].
[^set ] any character not in set
Pattern examples
string.find("Lua is great!", "is" ) 5 6
string.find("Lua is great!", "%s") 4 4
strin... | quarto-web |
update -preserve, "w+" = update -erase, "a+" = update -append (add trailing "b" f or binary mode
on some systems); returns a file object (a userdata with a C handle).
file :close () closes file
file :read ( formats ) returns a value from file for each of the passed formats : "*n" = reads a number, "*a" = reads
t... | quarto-web |
file :seek ([p] [, of]) sets t he current position in file relative to p ("set"= startoffile [default],"cur"= current,"end"
= end of file) adding offset of [default: zero];returns new current position in file .
file :flush () flushes any da ta still held in buffers to file
Simple I/O
io.input ([file]) sets file ... | quarto-web |
io.read ( formats ) reads from the default input file, usage as file:read()
io.lines ([fn]) opens the file with name fn for read ing and returns an iterator function to read line by line;the
iterato r closes the file when finished. I f no fn is given,returns an iteratorreading lines from the
default input file.
io... | quarto-web |
file object
io.tmpfile () returns a file object for a temporary f ile (deleted when program ends)
Note: unless otherwise stated, the I/O functions return nil and an error message on failure;passing a closed file objectraises an
error inste ad.
T he operating sy stem library [os]
System interaction
os.execute (cm... | quarto-web |
os.rename (of, nf) renames file of to nf ; in case of error returns nil and error description.
os.t mpname () returns a string usable as name for a temporary file; subject to name conflicts, use io.tm pfile()
instead.
Date/time
os.clock () returns an approximation of the amount in seconds of CPU time used by t... | quarto-web |
locale set tings]; if fmt is "*t" or "!*t", returns a table with fields year (yyyy), month (1..12),
day (1..31), hour (0..23), min (0..59), sec (0..61), wday (1..7, Sunday = 1), yday (1..366),
isdst (true = daylight saving), else returns the fmt string with formattin g directives beginning
with ' % ' replaced ... | quarto-web |
4
Ti me formatting directives (most used, portable features):
%c date/time (locale)
%x date only (locale) %X time only (locale)
%y year (nn) %Y year(yyyy)
%j day of year (001..366)
%m month (01..12)
%b abbreviated month name (locale) %B full name of month (locale)
%d day of month (01..31)
%U w eek number (01..53)... | quarto-web |
invalid level (see Result fields for getinfo below); characters in string w select one or more
groups of fields [default: all] (see Options for getinfo below).
debug.getlocal (n, i) returns name and value of local variable at index i (from 1, in order of appearance) of the
function at stack level n (1= caller); r... | quarto-web |
nil if i is out of range.
debug.sethook ([h, m [, n]])sets function h as hook, called for events given in string (mask) m : "c" = function call, "r" =
function return, "l" = new cod e line; also, a number n will call h() every n instructions; h() will
receive the event type as first argument: "call", "return", "t... | quarto-web |
what "Lua" = Lua function, "C" = C functi on, "main" = part of main chunk
nam e name of function, if available, or a reasonable guess if possible
namewhat m eaning of name : "global", " local", "method", "field" or ""
nups num ber of upvalues of the function
func the function itself
Options for debug.getinfo (cha... | quarto-web |
-i enters interactive mode after loading and executing script
-v prints version information
-- stops parsing options
Recognized environment variables
LUA_INIT if this holds a string in the form @filename loads and executes filename , else executes th e string itself
LUA_PATH defines search path for Lua modules, w... | quarto-web |
T he compiler
Command line syntax
luac [ options ] [ filenames ]
Options
- compiles from standard input
-l produces a l isting of the compiled bytecode
-o filename sends output to filename [default: luac.out ]
-p performs syntax and integrity checking only, does not output bytecode
-s strips debug information;... | quarto-web |
Quarto Presentations
with Reveal.js
1
https://quarto.org | quarto-web |
Hello, There
Reveal.js enables you to create beautiful interactive slide decks
using HTML. This presentation will show you examples of what
it can do, including:
Presenting code and LaTeX equations
Including computations in slide output
Image, video, and iframe backgrounds
Fancy transitions and animations
Printing to P... | quarto-web |
Pretty Code
Over 20 syntax highlighting themes available
Default theme optimized for accessibility
# Define a server for the Shiny app1
function(input, output) {2
3
# Fill in the spot we created for a plot4
output$phonePlot <- renderPlot({5
# Render a barplot6
})7
}8
3
https://quarto.org | quarto-web |
Code Animations
Over 20 syntax highlighting themes available
Default theme optimized for accessibility
# Define a server for the Shiny app1
function(input, output) {2
3
# Fill in the spot we created for a plot4
output$phonePlot <- renderPlot({5
# Render a barplot6
barplot(WorldPhones[,... | quarto-web |
Line Highlighting
Highlight specific lines for emphasis
Incrementally highlight additional lines
import numpy as np1
import matplotlib.pyplot as plt2
3
r = np.arange(0, 2, 0.01)4
theta = 2 * np.pi * r5
fig, ax = plt.subplots(subplot_kw={'projection': 'polar'})6
ax.plot(theta, r)7
ax.set_rticks([0.5, 1... | quarto-web |
Executable Code
library(ggplot2)1
ggplot(mtcars, aes(hp, mpg, color = am)) +2
geom_point() + geom_smooth(formula = y ~ x, method = "loess")3
6
https://quarto.org | quarto-web |
LaTeX Equations
rendering of equations to HTMLMathJax
\begin{gather*}1
a_1=b_1+c_1\\2
a_2=b_2+c_2-d_2+e_23
\end{gather*}4
5
\begin{align}6
a_{11}& =b_{11}&7
a_{12}& =b_{12}\\8
a_{21}& =b_{21}&9
a_{22}& =b_{22}+c_{22}10
\end{align}11
= +a1 b1 c1
= + − +a2 b2 c2 d2 e2
a11
a21
=b11
=b21
a12
a22
=b... | quarto-web |
Column Layout
Arrange content into columns of varying widths:
Motor Trend Car Road Tests
The data was extracted from
the 1974 Motor Trend US
magazine, and comprises fuel
consumption and 10 aspects of
automobile design and
performance for 32
automobiles.
mpg cyl disp hp wt
Mazda RX4 21.0 6 160 110 2.620
Mazda RX4 Wag 21... | quarto-web |
Incremental Lists
Lists can optionally be displayed incrementally:
First item
Second item
Third item
Insert pauses to make other types of content display
incrementally.
9
https://quarto.org | quarto-web |
Fragments
Incremental text display and animation with fragments:
Fade in
Slide up while fading in
Slide le while fading in
F ade in then semi out
Strike
Highlight red
10
https://quarto.org | quarto-web |
Slide Backgrounds
Set the background attribute on a slide to change the
background color (all CSS color formats are supported).
Different background transitions are available via the
background-transition option.
1 1
https://quarto.org | quarto-web |
Media Backgrounds
You can also use the following as a slide background:
An image: background-image
A video: background-video
An iframe: background-iframe
12
https://quarto.org | quarto-web |
Position Elements Anywhere
13
https://quarto.org | quarto-web |
Auto-Animate
Automatically animate matching elements across slides with
Auto-Animate.
14
https://quarto.org | quarto-web |
Auto-Animate
Automatically animate matching elements across slides with
Auto-Animate.
15
https://quarto.org | quarto-web |
Slide Transitions
The next few slides will transition using the slide transition
TransitionDescription
none No transition (default, switch instantly)
fade Cross fade
slide Slide horizontally
convex Slide at a convex angle
concaveSlide at a concave angle
zoom Scale the incoming slide so it grows in from the center of th... | quarto-web |
Tabsets
Plot Data
17
https://quarto.org | quarto-web |
Interactive Presentations
Interactive plots with Jupyter widgets and htmlwidgets
18
+
−
| © contributors, Leaflet OpenStreetMap CC-BY-SA
https://quarto.org | quarto-web |
Interactive Presentations
Embedded applications with Observable and Shiny
talent weight
0.7
looks weight
0.7
min fame
1
−2 −1 0 1 2
Looks
Talent
−2
−1
0
1
2
19
https://quarto.org | quarto-web |
Preview Links
Navigate to hyperlinks without disrupting the flow of your
presentation.
Use the preview-links option to open links in an iframe on
top of your slides. Try clicking the link below for a
demonstration:
Matplotlib: Visualization with Python
20
https://quarto.org | quarto-web |
Themes
10 Built-in Themes (or )create your own
21
https://quarto.org | quarto-web |
Easy Navigation
Quickly jump to other parts of your presentation
You can also press m to toggle the menu open and closed.
Toggle the slide menu with the menu button (bottom le
of slide) to go to other slides and access presentation
tools.
22
https://quarto.org | quarto-web |
Chalkboard
Free form drawing and slide annotations
You can also press b to toggle the chalkboard or c to toggle the
notes canvas.
Use the chalkboard button at the bottom le of the slide
to toggle the chalkboard.
Use the notes canvas button at the bottom le of the slide
to toggle drawing on top of the current slide.
2... | quarto-web |
Point of View
Press o to toggle overview mode:
Hold down the Alt key (or Ctrl in Linux) and click on any
element to zoom towards it—try it now on this slide.
24
https://quarto.org | quarto-web |
Speaker View
Press s (or use the presentation menu) to open speaker view
25
https://quarto.org | quarto-web |
Print to PDF
Print presentations to PDF using Chrome. Here’s a PDF version of this demo presentation:
d e m o . p d f 1 / 2 7 6 1 %
26
https://quarto.org | quarto-web |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 18