You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In brief,
* The first line sets the desired length of the time series.
* The next line creates an empty *list* called ``ϵ_values`` that will store the :math:`\epsilon_t` values as we generate them.
* The statement ``# empty list`` is a *comment*, and is ignored by Python's interpreter.
* The next three lines are the ``for`` loop, which repeatedly draws a new random number :math:`\epsilon_t` and appends it to the end of the list ``ϵ_values``.
* The last two lines generate the plot and display it to the user.
is producing in myst output
In brief,
$$* The first line sets the desired length of the time series.
* The next line creates an empty *list* called `ϵ_values` that will store the $\epsilon_t values as we generate them.* The statement `# empty list` is a *comment*, and is ignored by Python's interpreter.* The next three lines are the `for` loop, which repeatedly draws a new random number $\epsilon_t and appends it to the end of the list `ϵ_values`.* The last two lines generate the plot and display it to the user.
will need to identify where the extra $$ has come from in sphinxcontrib-tomyst
Hi @mmcky , this $$ issue occurs in lectures of OOP II: Building Classes, Python for Scientific Computing, NumPy, Parallelization and Writing Good Code. I observed all lists and found out that this issue occurs when the lists contains math or $.
The standard (inverse transform) algorithm is as follows:
$$$$$$$$$* Divide the unit interval $[0, 1] into $n subintervals $I_0, I_1, \ldots, I_{n-1} such that the length of $I_i is $q_i.
* Draw a uniform random variable $U on $[0, 1] and return the $i such that $U \in I_i.
the number of $ matches the number of math or $ in the list.(This rule is applied for the same issue in other lectures)
So, I wonder that
But since I don't major in CS, I don't understand well about how convert rst to myst in sphinxcontrib-tomyst. If issues are already fixed, please ignore this message.
Activity
mmcky commentedon Sep 14, 2020
The following
rstis producing in
mystoutput$$has come from insphinxcontrib-tomystmmcky commentedon Sep 14, 2020
This issue is fixed by executablebooks/sphinx-tomyst#43
sayaikegawa commentedon Sep 14, 2020
Hi @mmcky , this
$$issue occurs in lectures of OOP II: Building Classes, Python for Scientific Computing, NumPy, Parallelization and Writing Good Code. I observed all lists and found out that this issue occurs when the lists contains math or $.For example, in numpy lecture exercise2
the number of
$matches the number of math or $ in the list.(This rule is applied for the same issue in other lectures)So, I wonder that
in sphinxcontrib-tomyst/sphinxcontrib/tomyst/writers/markdown.py may react wrongly.
But since I don't major in CS, I don't understand well about how convert rst to myst in sphinxcontrib-tomyst. If issues are already fixed, please ignore this message.
mmcky commentedon Sep 14, 2020
@sayaikegawa can you check this against the latest build and let me know if its still an issue:
https://5f5eeb76598fe1f0ed985d58--epic-agnesi-957267.netlify.app/numpy.html
This link is provided on the PR that brought in the latest set of autobuild files #8
mmcky commentedon Sep 14, 2020
@sayaikegawa just updated source files again with latest upstream updates so best to check here:
https://5f5f3879598fe1455097dc6b--epic-agnesi-957267.netlify.app
sayaikegawa commentedon Sep 14, 2020
Thank you @mmcky . I check that the issue is solved in all lectures.