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
Package rst2ipynb #21513
Comments
Changed dependencies from 21512 to #21512 |
comment:3
Is this related to |
comment:4
Or do you have https://github.com/nthiery/rst-to-ipynb in mind? See also aaren/notedown#33 |
comment:5
Replying to @slel:
Indeed. But i proposed some changes to allow tables to be correctly displayed and the possiblity to tune the jupyter kernel (we need the sagemath one), now i have to wait that the repository get stablized again to push my changes on this ticket with the most recent version/hash, in particular, the work is not licensed yet, and should become BSD-3clause in case jupyter wants to include it. |
Branch: u/tmonteil/package_rst-to-ipynb |
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
As suggested by Samuel by email, the name of the upstream package is |
comment:10
ping ? |
comment:11
After downloading the zip file into upstream directory, both make
|
comment:12
Also
|
comment:13
The description of the ticket should be updated: scores vs underscores. Can you add information in the ticket how I should use that package? Inside sage? Inside |
This comment has been minimized.
This comment has been minimized.
comment:14
The ticket description said that the zipball should be renamed as |
comment:15
Thanks for the info. I forgot about #21514. I managed to run I did some testing... Sage blocks like the following works great:
They are translated into one input block + one output block. Great. I get a problem with
which get written into one input block. Is it possible to patch Nicolas Thiéry package? |
comment:16
Replying to @seblabbe:
I hope so ! Just make patch a send him a pull-request. I did that already to be able to define the kernel (so that the |
comment:17
Ok! I will do this probably next week during the sage days. Question maybe for Nicolas. Should I patch the |
comment:21
Let me just remind that Sage is a collective effort, which aims to share the development of common features in order to focus on the code specific to our own research. All the If, instead of trying alternate/duplicate ways to install it painlessly, those tickets had been reviewed, Now, could please someone review the last 2 tickets (this one and #21514 that i will push over this branch after it is reviewed) so that I presume Sebastien noticed the That said, regarding pip installation, there are two very different things: having rst-to-ipynb being pip-installable, and having it hosted/mirrored on PyPI. If you write a convenient setup.py script, we could modify the spkg-install script to use the pip command for the install. But please do not condition the review of this ticket to that, plan it for 7.6 instead, or earlier if the last 2 ticket get merged soon. Now, regarding fetching from PyPI for Sage, it is another story, since rst-yo-ipynb depends on notedown and pandoc_attributes, whose versions on PyPI are bitroting a lot behind the github source from which the Sage packages are built. Changes since the last PyPI update (more than 1+1/2 year) include Python3 support and various fixes. If you have enough free time for not only creating, but also being commited to maintaining a PyPI rst-to-ipynb package indefinitely, it is definitely interesting. It could even replace the current spkgs on the longer run, but it requires first to pressure notedown/pandoc_attributes dev to also update his PyPI repositories, and probably he does not have much time for this. Moreover, regarding the development of rst-to-ipynb, i guess it is better to develop and test it against the latest versions of its dependencies, and not the PyPI ones, since in case of an upstream problem, it is much more doable to obtain a pull than to obtain a new PyPI release. That said, having a somehow degraded (because of older dependencies) version on PyPI could be interesting for non-Sage users, but it would currently be a loss for Sage, and since the packaging work with up-to-date dependencies is done anyway, i do not see any benefit in relying on older Python3 incompatible versions. This is only a very personal suggestion, but if i had such free time, i would better work on having a rst2ipynb feature being part of Jupyter (which is why i promoted the licensing of rst-to-ipynb to be the same as the jupyter one), so that it will be much more maintained, widely tested, used in different contexts, hence improved. It would perhaps imply finding a non-pandoc way to do the conversion, i am not sure. Regarding the naming scheme, it is not very important, and certainly not imposed by the Please, let us focus on having a public working |
comment:23
Salut Thierry, With Sébastien, we are precisely in the process of reviewing this I agree, it would have been more productive to discuss earlier on the Thanks for pointing out the caveat about the outdated versions of My plan:
For the long run: having a reST to ipynb converter under the Jupyter Cheers, |
comment:24
rst2ipynb 0.2.1 "released" and uploaded on pipy: https://pypi.python.org/pypi/rst2ipynb/0.2.1 |
Changed branch from u/tmonteil/package_rst-to-ipynb to u/nthiery/package_rst-to-ipynb |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:28
Done! Thierry, Sébastien, do you mind reviewing my changes? I am now moving on to #21514. |
comment:29
Not sure whether I should be author or reviewer here :-) |
Reviewer: Sébastien Labbé, Nicolas M. Thiéry |
comment:30
The way you did the refactor lost all the history so it is hard to see what changed, you should use I have to recompile parts of Sage, so the rest might take time. |
comment:31
I am sorry that I was late at working on this ticket this Fall. I agree to postpone the fix of I intend to review this ticket so that it gets a positive review during Sage Days 79. Replying to @sagetrac-tmonteil:
+1 Nicolas, can you redo your last commit and use |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Changed keywords from none to days79 |
Changed reviewer from Sébastien Labbé, Nicolas M. Thiéry to Sébastien Labbé |
Changed author from Thierry Monteil to Thierry Monteil, Nicolas M. Thiéry |
Changed branch from u/nthiery/package_rst-to-ipynb to |
rst2ipynb
converts rst source to ipynb worksheet.This package will be used through the straightforward
sage -rst2ipynb
command, see #21514 You can still test it by hand as follows: installpandoc
on your system and if you have amyfile.rst
do:Depends on #21512
CC: @seblabbe @nthiery @sagetrac-boussica @videlec
Component: packages: optional
Keywords: days79
Author: Thierry Monteil, Nicolas M. Thiéry
Branch/Commit:
d5d5680
Reviewer: Sébastien Labbé
Issue created by migration from https://trac.sagemath.org/ticket/21513
The text was updated successfully, but these errors were encountered: