Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: linkable math from code-blocks #88

Open
mmcky opened this issue Sep 7, 2018 · 2 comments
Open

FEAT: linkable math from code-blocks #88

mmcky opened this issue Sep 7, 2018 · 2 comments
Milestone

Comments

@mmcky
Copy link
Contributor

mmcky commented Sep 7, 2018

a user would like to ability to for example have the following math and then use the label in code blocks for link-able references

.. math::
    :label: ma_inf

    X_t = \sum_{j=0}^{\infty} \psi_j \epsilon_{t-j},
    \qquad t \in \mathbb Z

such as

.. code-block: python
    
   <code> # :eq:`ma_inf`

we do have access to the contents of code-blocks but they do get moved out to pygments for rendering. So perhaps we can intercept on return of that process (in html format to insert the equation clickable link). I'll open as a FEATURE request on the sphinxcontrib-jupyter repo.

rather than looking for many tags it would be best to use a convention such as:

:rst:eq:`ma_inf`
@mmcky mmcky changed the title FEAT: FEAT: linkable math from code-blocks Sep 7, 2018
@arnavs
Copy link
Member

arnavs commented Jan 5, 2019

@mmcky Just wondering, has this been implemented yet/is it something that you think we could push forward on? It would be a big help as we're going through and adding math references to the code on the Julia side.

@mmcky
Copy link
Contributor Author

mmcky commented Jul 22, 2019

@arnavs I don't see this being implemented until v0.6 release. Let me know if that is a problem.

@mmcky mmcky added this to the v0.6 milestone Jul 22, 2019
@mmcky mmcky modified the milestones: v0.6, v1.0 Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants