ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 06 Jul 2022 13:05:27 +0200jupyterlab bug with interact-slider?https://ask.sagemath.org/question/63149/jupyterlab-bug-with-interact-slider/Is this my build or a bug?
The slider works in jupyter but not in my jupyterlab.
Code, cribbed from 'test_display.ipynb' https://nbviewer.org/github/egourgoulhon/SageMathTest/blob/master/Notebooks/test_display.ipynb
%display latex
version()
--
@interact
def _(a = slider([1..10]),
color=Color('red'),
axes=checkbox(True, 'Show axes'),
x_label=input_box('$x$', 'x-label', str),
y_label=input_box('$y$', 'y-label', str)):
viewer='threejs'
axes_labels = [x_label, y_label] if axes else None
show(plot(cos(a*x), (x, 0, 2*pi), color=color, thickness=2),
axes=axes, axes_labels=axes_labels)
Ubuntu Mate 22.04
Kernel Linux 5.15.0-40-generic x86_64
Processor: AMD A4-3300 APU with Radeon(tm) HD Graphics × 2
Compiled -- I still have the logs and such
There are some old online references to a similar problem, but I thought they were fixed.
I do like JupyterLab, but I also like sliders/buttons/widgets :)rrogersWed, 06 Jul 2022 13:05:27 +0200https://ask.sagemath.org/question/63149/How to make slider() text-editable?https://ask.sagemath.org/question/59354/how-to-make-slider-text-editable/ The link is [here](https://sagecell.sagemath.org/?z=eJxzyMwrSS1KTC7hSklNU4jXyLDVMNAz1NHQNdQx1NTUtOJSAIIMLi4HDHXFOZkpqUVghTpAscTSnBJbkNbiktSC-OLMqlQgz8DAUCcnMSk1x1ZdJcNWRR1uIADyuiFT&lang=sage&interacts=eJyLjgUAARUAuQ==). The text in the second slider is not editable. How to make the second slider's text editable? I would also want to keep the label in the second slider.jaqatraThu, 14 Oct 2021 19:23:54 +0200https://ask.sagemath.org/question/59354/reposition interact slider and avoid division by zerohttps://ask.sagemath.org/question/54140/reposition-interact-slider-and-avoid-division-by-zero/Can I reposition the interact slider for a plot? It often goes above the viewport and if I scroll the viewport to see the slider I cut off the lower part of the function.
Also, some plots, at a certain point, end up with division by zero. I get an error message at that point in the slider, but you can slide past that. Still, is there a way to avoid the one point where I divide by zero in a plotting statement? I tried "assume" but I apparently don't quite know how it works and the docs I found so far are inscrutable. cybervigilanteFri, 06 Nov 2020 23:25:37 +0100https://ask.sagemath.org/question/54140/