ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 06 Apr 2020 11:10:42 -0500Table frame not showing in Jupyter Notebook and inconsistent in other environmentshttps://ask.sagemath.org/question/50600/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:
![image description](/upfiles/15861892266090416.png)
This is the result in CoCalc:
![image description](/upfiles/1586189242468030.png)
This is the result in Jupyter (executed using `sage -n jupyter`):
![image description](/upfiles/15861892732930594.png)
Here are my questions:
1. Why is the `frame=True` option not working in Jupyter?
2. Why the difference in the results?
3. Is there any way to make these results consistent through these environments?dsejasMon, 06 Apr 2020 11:10:42 -0500https://ask.sagemath.org/question/50600/Interact layout in Jupyter-Notebookhttps://ask.sagemath.org/question/47120/interact-layout-in-jupyter-notebook/When I run this code
@interact(layout=dict(top=[['f', 'color']],
left=[['axes'],['fill']],
bottom=[['zoom']]))
def _(f=input_box(x^2,width=20),
color=color_selector(widget='colorpicker', label=""),
axes=True,
fill=True,
zoom=range_slider(-3,3, default=(-3,3))):
show(plot(f,(x,zoom[0], zoom[1]), color=color, axes=axes,fill=fill))
in Jupyter notebook, the controls are not organised as specified. But this is not so with the old SageNB notebook. How can I make the controls specified in the `layout` parameter to appear in the output as originally specified? Please advise.eocanseyWed, 10 Jul 2019 16:49:30 -0500https://ask.sagemath.org/question/47120/