👀 Reading hidden code
using Symbolics : @variables
👀 Reading hidden code
using LaTeXStrings
MIME type text/latex
👀 Reading hidden code
m = MIME"text/latex"()
r (generic function with 1 method)
👀 Reading hidden code
Don't render $this$ as latex
👀 Reading hidden code
html"""
<p>Don't render $this$ as latex</p>
"""
👀 Reading hidden code
a = L"world"
👀 Reading hidden code
b = L"hello $world$"
👀 Reading hidden code
c = L"hello $world$ asdf"
$world$
hello $world$
hello $world$ asdf
👀 Reading hidden code
👀 Reading hidden code
using JuMP
WARNING: using JuMP.@variables in module workspace#4 conflicts with an existing identifier.
@variables d e f
👀 Reading hidden code
d
👀 Reading hidden code
$$ \begin{equation}
d
\end{equation}
$$
r(d)
👀 Reading hidden code
A JuMP Model
├ solver: none
├ objective_sense: MAX_SENSE
│ └ objective_function_type: AffExpr
├ num_variables: 2
├ num_constraints: 5
│ ├ JuMP.AffExpr in MOI.LessThan{Float64}: 1
│ ├ JuMP.VariableRef in MOI.GreaterThan{Float64}: 2
│ └ JuMP.VariableRef in MOI.LessThan{Float64}: 2
└ Names registered in the model
└ :con, :x, :y
g = let
g = Model()
@variable(g, 0 <= x <= 2)
@variable(g, 0 <= y <= 30)
@objective(g, Max, 5x + 3 * y)
@constraint(g, con, 1x + 5y <= 3)
g
end
👀 Reading hidden code
MethodError: no method matching show(::IOBuffer, ::MIME{Symbol("text/latex")}, ::JuMP.Model)
Closest candidates are:
show(::IO, ::AbstractString, ::Any) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/base/multimedia.jl:111
show(::IO, ::MIME{Symbol("text/csv")}, ::Any) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/stdlib/v1.7/DelimitedFiles/src/DelimitedFiles.jl:829
show(::IO, ::MIME{Symbol("text/tab-separated-values")}, ::Any) at /opt/hostedtoolcache/julia/1.7.3/x64/share/julia/stdlib/v1.7/DelimitedFiles/src/DelimitedFiles.jl:830
...
Here is what happened, the most recent locations are first:
- __binrepr
(m::MIME{Symbol("text/latex")}, x::JuMP.Model, context::Nothing) from multimedia.jl:159 - _textrepr
(m::MIME{Symbol("text/latex")}, x::JuMP.Model, context::Nothing) from multimedia.jl:151 - repr
(m::MIME{Symbol("text/latex")}, x::JuMP.Model; context::Nothing) from multimedia.jl:147 - repr
(m::MIME{Symbol("text/latex")}, x::JuMP.Model) from multimedia.jl:147 - r
(x::JuMP.Model) from Other cell: line 1r(x) = repr(m, x) |> Text
- Show more...
uhmmmmmm??!
r(g)
👀 Reading hidden code
Hello
h = md"""
Hello $math$ how are
```math
you?
```
"""
👀 Reading hidden code
<div class="markdown"><p>Hello <span class="tex">$math$</span> how are</p>
<p class="tex">$$you?$$</p>
</div>
repr(MIME"text/html"(), h) |> Text
👀 Reading hidden code