Table frame not showing in Jupyter Notebook and inconsistent in other environments
Hello, Sage community!
The table
command in Sage has this useful option called frame
. If I set frame=True
in SageCell, CoCalc, the Sage terminal and SageTeX, the result is the expected: a frame is shown for the corresponding table. However, the same command does not work properly in Jupyter Notebooks. Also, the results are quite different in SageCell and CoCalc.
The following three images show the result of executing the following commands:
rows = [[100,2,3], [4,5,60]]
t = table(rows, frame=True)
show(t)
This is the result in SageCell:
This is the result in CoCalc:
This is the result in Jupyter (executed using sage -n jupyter
):
Here are my questions:
- Why is the
frame=True
option not working in Jupyter? - Why the difference in the results?
- Is there any way to make these results consistent through these environments?
The table module was written by John Palmieri (and reviewed by me:) before the inclusion of the Jupyter notebook in Sage. You are welcome to contribute to Sage to fix those issues.
Hello, @Sébastien! I have been thinking about enhancing the table module a little bit, ever since I was translating Prof. Bard's "Sage for Undergraduates" to Spanish. Basically, I would like a little bit more of customization. This could be a good opportunity to do that and fix the issues you mentioned.
I hope you don't mind my asking: How can I send patches of code or new code if I don't know how to use
git
? (Of course, I can learn, but it will take me a few weeks.)Perhaps it is worth writing first to Andrey Novoseltsev, the maintainer of SageCell. How has he managed to get working the
frame=True
option?"How can I send patches of code or new code if I don't know how to use git? (Of course, I can learn, but it will take me a few weeks.)"
It seems to be a nice question to ask on ask! :)
Hello, @Sébastien! I was about to post the question, but I can see that you already did. Thank you very much, I appreciate it! I hope I can collaborate with the Sage community!