Replies: 1 comment 2 replies
-
Can you test with Latest Quarto 1.4 you can get from the download page ? Example used ---
title: "Proofs"
format: revealjs
keep-md: true
---
## Polynomial regression
```{r}
#| include: false
library(tibble)
library(ggplot2)
library(latex2exp)
```
::: {.panel-tabset}
## R
```{r}
#| echo: true
set.seed(5059)
n <- 100
X <- 6 * runif(n) - 3 # X values randomly distributed␣over -3& 3.
y_signal <- 0.5 * X^2 + X + 2 # True signal
y <- y_signal + rnorm(n) # add random noise
df <- as_tibble(cbind(X, y))
example_plot <- ggplot() + geom_point(data=df, aes(x=X, y=y), color='blue') + xlab(TeX("$X_1$")) + theme_bw(base_size=16)
```
## Python
```{python}
#| echo: true
import numpy as np
np.random.seed(42)
n = 100 # Number of points.
X = 6 * np.random.rand(n, 1) - 3 # x coordinates randomly distributed between -3 at 3.
y_signal = 0.5 * X**2 + X + 2 # True signal is y = 0.5x^2 + x + 2.
y = y_signal + np.random.randn(n, 1) # Add random noise.
```
:::
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For revealjs slides the documentation for tabsets https://quarto.org/docs/presentations/revealjs/#tabsets

shows the tabs appearing side by side
When I try implementing this in my code I get the tabs on top of each other, how do I get them side by side?

Beta Was this translation helpful? Give feedback.
All reactions