Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Book
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUDE
Book
Commits
99e9f34f
Commit
99e9f34f
authored
1 year ago
by
Max Guichard
Browse files
Options
Downloads
Patches
Plain Diff
MathJax not present bug
parent
6a8725e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!233
Fix thebe on publish
Pipeline
#212014
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
thebe_lite/_static/sphinx-thebe.js
+8
-5
8 additions, 5 deletions
thebe_lite/_static/sphinx-thebe.js
with
8 additions
and
5 deletions
thebe_lite/_static/sphinx-thebe.js
+
8
−
5
View file @
99e9f34f
...
...
@@ -186,6 +186,7 @@ var configureThebe = () => {
thebelab
.
events
.
listeners
.
status
.
clear
();
// Remove further status message handling
thebelab
.
on
(
"
status
"
,
function
(
evt
,
data
)
{
// But we add one to trigger automatic Mathjax rendering
if
(
data
.
subject
==
'
cell
'
&&
data
.
status
==
'
idle
'
)
{
if
(
window
.
MathJax
===
undefined
)
{
return
;
}
MathJax
.
typeset
()
}
})
...
...
@@ -434,11 +435,13 @@ var initThebe = async () => {
modifyDOMForThebe
();
await
thebelab
.
bootstrap
(
thebeLiteConfig
);
// Setup MathJax settings for handling Jupyter output
localStorage
.
setItem
(
"
MathJax-Menu-Settings
"
,
'
{"renderer":"SVG"}
'
)
MathJax
.
config
.
tex
.
inlineMath
=
[[
'
$
'
,
'
$
'
]]
// Include $ delimeter to indicate Maths (used by IPython)
MathJax
.
config
.
options
.
processHtmlClass
+=
"
|jp-OutputArea-output
"
// Include Thebe output cells as containing Maths
MathJax
.
startup
.
getComponents
()
// Reset all built-in components
if
(
window
.
MathJax
!==
undefined
)
{
// Setup MathJax settings for handling Jupyter output
localStorage
.
setItem
(
"
MathJax-Menu-Settings
"
,
'
{"renderer":"SVG"}
'
)
MathJax
.
config
.
tex
.
inlineMath
=
[[
'
$
'
,
'
$
'
]]
// Include $ delimeter to indicate Maths (used by IPython)
MathJax
.
config
.
options
.
processHtmlClass
+=
"
|jp-OutputArea-output
"
// Include Thebe output cells as containing Maths
MathJax
.
startup
.
getComponents
()
// Reset all built-in components
}
document
.
querySelectorAll
(
"
.keep
"
).
forEach
((
kept
,
_
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment