Skip to content

Commit

Permalink
Param 2.0 updates: rename style to styles (#5169)
Browse files Browse the repository at this point in the history
* rename style to styles

* more rename from style to styles...
  • Loading branch information
maximlt authored Jun 23, 2023
1 parent c448c7d commit e8007ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions doc/how_to/pipeline/simple_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class Stage1(param.Parameterized):
def view(self):
c, d = self.output()
c_out = pn.pane.LaTeX('${a} * {b} = {c}$'.format(
a=self.a, b=self.b, c=c), style={'font-size': '2em'})
a=self.a, b=self.b, c=c), styles={'font-size': '2em'})
d_out = pn.pane.LaTeX('${a}^{{{b}}} = {d}$'.format(
a=self.a, b=self.b, d=d), style={'font-size': '2em'})
a=self.a, b=self.b, d=d), styles={'font-size': '2em'})
return pn.Column(
c_out, d_out, margin=(40, 10), styles={'background': '#f0f0f0'}
)
Expand Down Expand Up @@ -90,7 +90,7 @@ class Stage2(param.Parameterized):
@param.depends('c', 'exp')
def view(self):
out = pn.pane.LaTeX('${%s}^{%s}={%.3f}$' % (self.c, self.exp, self.c**self.exp),
style={'font-size': '2em'})
styles={'font-size': '2em'})
return pn.Column(out, margin=(40, 10), styles={'background': '#f0f0f0'})
def panel(self):
Expand Down Expand Up @@ -134,9 +134,9 @@ class Stage1(param.Parameterized):
def view(self):
c, d = self.output()
c_out = pn.pane.LaTeX('${a} * {b} = {c}$'.format(
a=self.a, b=self.b, c=c), style={'font-size': '2em'})
a=self.a, b=self.b, c=c), styles={'font-size': '2em'})
d_out = pn.pane.LaTeX('${a}^{{{b}}} = {d}$'.format(
a=self.a, b=self.b, d=d), style={'font-size': '2em'})
a=self.a, b=self.b, d=d), styles={'font-size': '2em'})
return pn.Column(c_out, d_out, margin=(40, 10), styles={'background': '#f0f0f0'})
def panel(self):
Expand All @@ -150,7 +150,7 @@ class Stage2(param.Parameterized):
@param.depends('c', 'exp')
def view(self):
out = pn.pane.LaTeX('${%s}^{%s}={%.3f}$' % (self.c, self.exp, self.c**self.exp),
style={'font-size': '2em'})
styles={'font-size': '2em'})
return pn.Column(out, margin=(40, 10), styles={'background': '#f0f0f0'})
def panel(self):
Expand Down
4 changes: 2 additions & 2 deletions panel/tests/manual/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@
# Model: katex
latex1 = pn.pane.LaTeX(
"The LaTeX pane supports two delimiters: $LaTeX$ and \(LaTeX\)",
style={"font-size": "18pt"},
styles={"font-size": "18pt"},
width=800,
)

# Model: location

# Model: mathjax
latex2 = pn.pane.LaTeX(
"$\sum_{j}{\sum_{i}{a*w_{j, i}}}$", renderer="mathjax", style={"font-size": "18pt"}
"$\sum_{j}{\sum_{i}{a*w_{j, i}}}$", renderer="mathjax", styles={"font-size": "18pt"}
)

# Model: perspective
Expand Down

0 comments on commit e8007ea

Please sign in to comment.