-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Define x
as symbolic variable in many animate
examples
#33264
Comments
comment:1
Did you redefine Try running |
comment:2
All the examples work fine for me in a fresh Sage session
If I first redefine
then the failures in the ticket description arise. Resetting
solves the issues, and the examples work fine again. |
comment:3
This seems like user error rather than a defect in Sage. Propose to close as invalid. |
comment:4
Hello slelievre. You said "redefine x" means below sentence ?
If it's correct, I redefined. I tried running reset('x') and running the examples again. Then TypeError disappeared. Thanks slelievre. I'm a beginner of sagemath, so I have no idea how to recovery from TypeError. And I couldn't run below sentence.
I believe that all of the sagemath beginner cannot recovery from TypeError. Please change document of "make_image(frame, filename, **kwds)" in Animated plots. EXAMPLES:
|
comment:5
In gh-umedoblock's defense, our examples do rely on some implicit magic, the symbolic variable |
comment:6
Replying to @orlitzky:
Huge +1 from me. |
comment:7
It looks like maybe there's a reason to propose this that won't make me look like a busybody: #32721 |
comment:8
Do you irritate me ? Sorry. I insert And So please insert
|
comment:9
Instead of I agree many documentation examples would be improved |
comment:10
Improved. And works it. Thanks slelieve and mjo.
|
Commit: |
comment:11
One down, a million to go. New commits:
|
Branch: u/mjo/ticket/33264 |
Author: Michael Orlitzky |
This comment has been minimized.
This comment has been minimized.
comment:13
That will help! |
Reviewer: Samuel Lelièvre |
Changed keywords from none to SR.var('x') |
This comment has been minimized.
This comment has been minimized.
x
as symbolic variable in many animate
examples
Changed branch from u/mjo/ticket/33264 to |
The animated plots examples in the documentation at
include an example where
x = lambda t: cos(t)
and
y = ...
are used for a parametric plot.Many subsequent examples fail with a type error
if run without resetting
x
to its default value,either with
reset('x')
or withx = SR.var('x')
.CC: @slel @mkoeppe
Component: graphics
Keywords: SR.var('x')
Author: Michael Orlitzky
Branch/Commit:
e73cd12
Reviewer: Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/33264
The text was updated successfully, but these errors were encountered: