You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromIPython.displayimportdisplay, Markdownimportipywidgetsaswidgetsfromipywidgetsimportinteractdefexplainer(num):
print("The number guessed it: ", num)
print("")
print("The formula to use is: ")
display(Markdown("$\;\;\;\; \\frac{2x+8}{2}-x$"));
print(f"Substitute the number in for x, in this case {num}")
display(Markdown("$\;\;\;\; \\frac{2 \cdot %s +8}{2}-%s$"% (num, num)));#.format(number = num)));print("Simplify:")
display(Markdown("$\;\;\;\; \\frac{%s +8}{2}-%s$"% (num*2, num)));#.format(number = num)));print("Simplify:")
display(Markdown("$\;\;\;\; \\frac{%s}{2}-%s$"% (num*2+8, num)));#.format(number = num)));print("Simplify:")
display(Markdown("$\;\;\;\; %s-%s$"% (int((num*2+8)/2), num)));#.format(number = num)));print("Simplify:")
display(Markdown("$\;\;\;\; %s$"% (int((num*2+8)/2) -num)));#.format(number = num)));#print(display(Markdown(r"$\frac{2x+8}{2} - x$")))print("The result of the computation is: ", int(qa(num)))
interact(explainer, num=widgets.IntSlider(value=4, min=0, max=100));
On the left you will see the rendering in jupyterlab, on the right is voila:
Note: This issue seems to be inconsistent, most of the time It does not render properly - but I have seen it render properly a couple of times. But in the instances where it did render properly on page load - it 100% of the time does not render properly after having dragged the slider.
The text was updated successfully, but these errors were encountered:
This may be also related to: #640
Here is the code to reproduce:
On the left you will see the rendering in jupyterlab, on the right is voila:
Note: This issue seems to be inconsistent, most of the time It does not render properly - but I have seen it render properly a couple of times. But in the instances where it did render properly on page load - it 100% of the time does not render properly after having dragged the slider.
The text was updated successfully, but these errors were encountered: