[MacPorts] #39216: py-ipython: include offline copy of MathJax
#39216: py-ipython: include offline copy of MathJax -------------------------+------------------------ Reporter: aronnax@… | Owner: akitada Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: py-ipython -------------------------+------------------------ The IPython Notebook offers an option to install an offline copy of MathJax. This is really helpful for using the IPython Notebook without internet access. The installation instructions say that you do this by running the following Python snippet: {{{ from IPython.external.mathjax import install_mathjax install_mathjax() }}} However, this requires write access to the {{{site-packages}}} directory. As such, it would be handy if this was offered as a port variant, {{{+mathjax}}}. I noticed another ticket, #39197, that has a dependency on MathJax. Perhaps a MathJax port would be in order here? -- Ticket URL: <https://trac.macports.org/ticket/39216> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Changes (by larryv@…): * owner: akitada => akitada@… * version: 2.1.3 => -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by aronnax@…): I just attached a path for the py-ipython Portfile that adds a mathjax variant ("Install offline copy of MathJax 2.2"). This variant adds MathJax 2.2 to the distfiles and then moves it into place during post-destroot. -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by macsforever2000@…): Shouldn't this be a whole new port? py-mathjax? -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by aronnax@…): Replying to [comment:4 macsforever2000@…]:
Shouldn't this be a whole new port? py-mathjax?
It could be a new port. Maybe not py-mathjax, because (as far as I know) MathJax itself doesn't contain any Python, just JavaScript and CSS. -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by aronnax@…): Replying to [comment:5 aronnax@…]:
Replying to [comment:4 macsforever2000@…]:
Shouldn't this be a whole new port? py-mathjax?
It could be a new port. Maybe not py-mathjax, because (as far as I know) MathJax itself doesn't contain any Python, just JavaScript and CSS.
IPython is just downloading and unpacking a mathjax tarball. Is it sufficient to create a port that has that tarball expanded into ${prefix}/share/mathjax? -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by mf2k@…): From looking at the [http://ipython.org/ipython- doc/dev/install/install.html#dependencies-for-the-ipython-html-notebook ipython docs], mathjax looks just like a python module as much as tornado and jinja which are mentioned along side it. We already have ports for py- jinja and py-tornado. So I think this should be treated like a python module too and called py-mathjax. -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by edewitt@…): I don't see any python in MathJax. I think it could be a port, but wouldn't be a 'py-' port. However, because it's basically a rendering engine, in this case I think it seems like it would make sense to either package it as a variant or make it a separate package. I, too, would like to see one of the too solutions implemented. Let me know if I can help—but I haven't worked on port files in a while... -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+----------------------- Reporter: aronnax@… | Owner: akitada@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+----------------------- Comment (by aronnax@…): Might as well be a separate package. Note that as far as MacPorts is concerned, it's 100% architecture-independent data files, should go in {{{share}}}. -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#39216: py-ipython: include offline copy of MathJax --------------------------+-------------------------------- Reporter: aronnax@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: py-ipython | --------------------------+-------------------------------- Changes (by mf2k@…): * owner: akitada@… => macports-tickets@… Comment: This port is no longer maintained. See #43692. -- Ticket URL: <https://trac.macports.org/ticket/39216#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts