passagemath-repl 10.5.5__py3-none-any.whl → 10.5.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {passagemath_repl-10.5.5.dist-info → passagemath_repl-10.5.8.dist-info}/METADATA +3 -3
  2. {passagemath_repl-10.5.5.dist-info → passagemath_repl-10.5.8.dist-info}/RECORD +29 -29
  3. sage/doctest/control.py +1 -1
  4. sage/misc/cython.py +6 -0
  5. sage/repl/attach.py +6 -2
  6. sage/repl/interpreter.py +1 -2
  7. sage/repl/ipython_extension.py +10 -3
  8. sage/repl/ipython_kernel/widgets.py +1 -1
  9. sage/repl/load.py +15 -4
  10. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-cachegrind +0 -0
  11. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-callgrind +0 -0
  12. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-cleaner +0 -0
  13. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-coverage +0 -0
  14. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-eval +0 -0
  15. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-fixdoctests +0 -0
  16. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-inline-fortran +0 -0
  17. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-ipynb2rst +0 -0
  18. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-ipython +0 -0
  19. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-massif +0 -0
  20. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-notebook +0 -0
  21. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-omega +0 -0
  22. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-preparse +0 -0
  23. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-run +0 -0
  24. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-run-cython +0 -0
  25. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-runtests +0 -0
  26. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-startuptime.py +0 -0
  27. {passagemath_repl-10.5.5.data → passagemath_repl-10.5.8.data}/scripts/sage-valgrind +0 -0
  28. {passagemath_repl-10.5.5.dist-info → passagemath_repl-10.5.8.dist-info}/WHEEL +0 -0
  29. {passagemath_repl-10.5.5.dist-info → passagemath_repl-10.5.8.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: passagemath-repl
3
- Version: 10.5.5
3
+ Version: 10.5.8
4
4
  Summary: passagemath: IPython kernel, Sage preparser, doctester
5
5
  Author-email: The Sage Developers <sage-support@googlegroups.com>
6
6
  Maintainer: Matthias Köppe, passagemath contributors
@@ -28,8 +28,8 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
28
28
  Classifier: Topic :: Scientific/Engineering :: Mathematics
29
29
  Requires-Python: <3.13,>=3.9
30
30
  Description-Content-Type: text/x-rst
31
- Requires-Dist: passagemath-objects ~=10.5.5.0
32
- Requires-Dist: passagemath-environment ~=10.5.5.0
31
+ Requires-Dist: passagemath-objects ~=10.5.8.0
32
+ Requires-Dist: passagemath-environment ~=10.5.8.0
33
33
  Requires-Dist: ipykernel >=5.2.1
34
34
  Requires-Dist: ipython >=7.13.0
35
35
  Requires-Dist: ipywidgets >=7.5.1
@@ -1,27 +1,27 @@
1
- passagemath_repl-10.5.5.data/scripts/sage-cachegrind,sha256=FRrT4BoRsrATlQOrXALHAbDI_KLhz0XuDOD6xzECEl8,651
2
- passagemath_repl-10.5.5.data/scripts/sage-callgrind,sha256=pWhrI8NsVa_XSuay052htjxcM3thrpX8rI6Uj_pK5Uo,442
3
- passagemath_repl-10.5.5.data/scripts/sage-cleaner,sha256=vM0CkzbxiSCE0Z85AViQIvoxb5oUz5WOmVOvShbLDUY,7778
4
- passagemath_repl-10.5.5.data/scripts/sage-coverage,sha256=IhvqnFvmvNJBMQtiSu5_Qy52a67hG-r3cAeyhYOOj7w,10199
5
- passagemath_repl-10.5.5.data/scripts/sage-eval,sha256=4IHv01xH34wJPj61wzcL5ufhoO6Y3UTTGz7b-0YKJFw,266
6
- passagemath_repl-10.5.5.data/scripts/sage-fixdoctests,sha256=cTWoFr9rAdOF-xeW6ytNeX3EzhKcs1mTN4UilP4kiGg,36877
7
- passagemath_repl-10.5.5.data/scripts/sage-inline-fortran,sha256=T3U943WNPKrxQJuanBhTpXU3jJ5vjaXd56R8yWv_8PM,234
8
- passagemath_repl-10.5.5.data/scripts/sage-ipynb2rst,sha256=PynBPdthnpwGbILDRA38IwpT319Ze-g8UMmWaaTnimQ,1345
9
- passagemath_repl-10.5.5.data/scripts/sage-ipython,sha256=RYYd8-gmE5JE_-dCkOSDpC6rRsX6i6tma3pqgmXYJvM,342
10
- passagemath_repl-10.5.5.data/scripts/sage-massif,sha256=Tfqb6ON9d0OZnt6VlGS21asbdMq8zWzx8ZnvV1n_buI,613
11
- passagemath_repl-10.5.5.data/scripts/sage-notebook,sha256=QJ1Y4eTptc6TbNVXZswpcsn-NqaQNuSwjWE-lYmGpW8,8453
12
- passagemath_repl-10.5.5.data/scripts/sage-omega,sha256=4ARnHyZyB69ltxHj9xYpzad_YCBT3Nk0Wq3Ke09gExM,595
13
- passagemath_repl-10.5.5.data/scripts/sage-preparse,sha256=3L1KKgvSApvoK467Wza0S4WQLCXiYvivrhDKIvA1omc,10595
14
- passagemath_repl-10.5.5.data/scripts/sage-run,sha256=F1oAgPN7Kh5dO1smCyfGVT0Dy46NQ_dQ3OQZ8Wa6foM,689
15
- passagemath_repl-10.5.5.data/scripts/sage-run-cython,sha256=02mTGXokayRxISoCWWsDcKZwGrmh5B0mJJxTT87J01Q,235
16
- passagemath_repl-10.5.5.data/scripts/sage-runtests,sha256=nUvI3fCrBjqPUict01wIxwYPjvaZf4ttLp85tavUEpY,111
17
- passagemath_repl-10.5.5.data/scripts/sage-startuptime.py,sha256=RtIuC7jM3SOwROXTa6nnpJhzK0sQ24nDqyE6zXpCWEI,6209
18
- passagemath_repl-10.5.5.data/scripts/sage-valgrind,sha256=fZxy00oXU4PpHf_wc2uYKb7lzqSBY4VkhUxiuvXHKhA,1201
1
+ passagemath_repl-10.5.8.data/scripts/sage-cachegrind,sha256=FRrT4BoRsrATlQOrXALHAbDI_KLhz0XuDOD6xzECEl8,651
2
+ passagemath_repl-10.5.8.data/scripts/sage-callgrind,sha256=pWhrI8NsVa_XSuay052htjxcM3thrpX8rI6Uj_pK5Uo,442
3
+ passagemath_repl-10.5.8.data/scripts/sage-cleaner,sha256=vM0CkzbxiSCE0Z85AViQIvoxb5oUz5WOmVOvShbLDUY,7778
4
+ passagemath_repl-10.5.8.data/scripts/sage-coverage,sha256=IhvqnFvmvNJBMQtiSu5_Qy52a67hG-r3cAeyhYOOj7w,10199
5
+ passagemath_repl-10.5.8.data/scripts/sage-eval,sha256=4IHv01xH34wJPj61wzcL5ufhoO6Y3UTTGz7b-0YKJFw,266
6
+ passagemath_repl-10.5.8.data/scripts/sage-fixdoctests,sha256=cTWoFr9rAdOF-xeW6ytNeX3EzhKcs1mTN4UilP4kiGg,36877
7
+ passagemath_repl-10.5.8.data/scripts/sage-inline-fortran,sha256=T3U943WNPKrxQJuanBhTpXU3jJ5vjaXd56R8yWv_8PM,234
8
+ passagemath_repl-10.5.8.data/scripts/sage-ipynb2rst,sha256=PynBPdthnpwGbILDRA38IwpT319Ze-g8UMmWaaTnimQ,1345
9
+ passagemath_repl-10.5.8.data/scripts/sage-ipython,sha256=RYYd8-gmE5JE_-dCkOSDpC6rRsX6i6tma3pqgmXYJvM,342
10
+ passagemath_repl-10.5.8.data/scripts/sage-massif,sha256=Tfqb6ON9d0OZnt6VlGS21asbdMq8zWzx8ZnvV1n_buI,613
11
+ passagemath_repl-10.5.8.data/scripts/sage-notebook,sha256=QJ1Y4eTptc6TbNVXZswpcsn-NqaQNuSwjWE-lYmGpW8,8453
12
+ passagemath_repl-10.5.8.data/scripts/sage-omega,sha256=4ARnHyZyB69ltxHj9xYpzad_YCBT3Nk0Wq3Ke09gExM,595
13
+ passagemath_repl-10.5.8.data/scripts/sage-preparse,sha256=3L1KKgvSApvoK467Wza0S4WQLCXiYvivrhDKIvA1omc,10595
14
+ passagemath_repl-10.5.8.data/scripts/sage-run,sha256=F1oAgPN7Kh5dO1smCyfGVT0Dy46NQ_dQ3OQZ8Wa6foM,689
15
+ passagemath_repl-10.5.8.data/scripts/sage-run-cython,sha256=02mTGXokayRxISoCWWsDcKZwGrmh5B0mJJxTT87J01Q,235
16
+ passagemath_repl-10.5.8.data/scripts/sage-runtests,sha256=nUvI3fCrBjqPUict01wIxwYPjvaZf4ttLp85tavUEpY,111
17
+ passagemath_repl-10.5.8.data/scripts/sage-startuptime.py,sha256=RtIuC7jM3SOwROXTa6nnpJhzK0sQ24nDqyE6zXpCWEI,6209
18
+ passagemath_repl-10.5.8.data/scripts/sage-valgrind,sha256=fZxy00oXU4PpHf_wc2uYKb7lzqSBY4VkhUxiuvXHKhA,1201
19
19
  sage/all__sagemath_repl.py,sha256=z6lERTYuw3I4LQ7-hnEYbY1i-hMJj2uAm2ujOmWitSo,5713
20
20
  sage/doctest/__init__.py,sha256=JJMNkq7Rh3gCshtynqXDTLJgUKweNFlUhpnbvTLRMwg,166
21
21
  sage/doctest/__main__.py,sha256=wGVNiaPbhQwzoAs3Y1xhYBlB18pBieEDhi71ggF8NkQ,13647
22
22
  sage/doctest/all.py,sha256=SRWEXRjzsrFyY1rrErA7--1DrvjUQR0Th30P6vubnZ0,157
23
23
  sage/doctest/check_tolerance.py,sha256=YnYr981uSUZWfuv5OrXdytXsZx6PtJnQ7Mg8-Lj7pB4,8945
24
- sage/doctest/control.py,sha256=1E8JeLV7vTZiCiHNB-Z8Nu8k3soeRHLQOn-Dh6dx-uQ,67862
24
+ sage/doctest/control.py,sha256=AtpT3jQeGpb3kpyZDho9rDmXl6nYJ77YBpraKP2i_78,67870
25
25
  sage/doctest/external.py,sha256=ddr7S0bt1bqAHWyAQj0z4O1SrjwgpdY7ghDt4KZzDRo,15601
26
26
  sage/doctest/fixtures.py,sha256=UDSykekKanmnD737VXFv7r5QzcZmqzfwn1Noc_fKcnE,12784
27
27
  sage/doctest/forker.py,sha256=QhRJE8zV_KV0o8-4SX0tAzP49uZkYtsLY1mAkRDopI0,110831
@@ -57,7 +57,7 @@ sage/misc/banner.py,sha256=69sC578x0-t8a_l14w08xMLPBp0wcd8RsdTrcJq7ERQ,7883
57
57
  sage/misc/benchmark.py,sha256=4hW6hTGWfPb_E_U8V19Y_CPRN9_mUMsefrIb1rkzhfQ,6162
58
58
  sage/misc/classgraph.py,sha256=e9xZbH4cZhkY8uuNL-PrS1tyFXm8JcnhyE8uTDYOCoE,5155
59
59
  sage/misc/copying.py,sha256=jyY_AyAAFHAYGkj6Ca-kRd-PcW4qg18kDIUp1dVPk0M,423
60
- sage/misc/cython.py,sha256=cwOYy0szkMMS1CMZGpnA2tqU_SJDBoEBMlFyRWMhNik,24463
60
+ sage/misc/cython.py,sha256=tMs4FeyaE2Sbcd8wTGScXwTegQIU5iLFgOQUQA1VfbA,24659
61
61
  sage/misc/dev_tools.py,sha256=7Op4JFUXiYjUHN1lxO7blEVDr3vwYzDujO70XjwNDUE,28380
62
62
  sage/misc/edit_module.py,sha256=A3EctK2BgolhFtsCXtiShKzr_c0r3eGmb9HYnKPyOto,10528
63
63
  sage/misc/explain_pickle.py,sha256=KLuoOx_7xEeawgnLvheim4qmgMhPPOL0CcRxbP7CpWM,107704
@@ -75,15 +75,15 @@ sage/misc/sh.py,sha256=4aogzam8JR0jtvWOM5CXycjPjWqUNs7Pc9l0fNwmwuw,1446
75
75
  sage/misc/trace.py,sha256=xEwmVVALZ7aCciIRpspoY4IJuE1T9502P5KL2VH0yl0,2978
76
76
  sage/repl/__init__.py,sha256=n6Dp28k-5BZmi9cePkg8G6S9qFWUGPBiFVRSiwsPLqk,663
77
77
  sage/repl/all.py,sha256=nh532qefRODsltlLeN-zFkX8UHc6g09pFh5gdIvMORI,508
78
- sage/repl/attach.py,sha256=v76YYujqim0c2AMY0DUTZoF3DwmMknuGLu-ydf8x9dI,19651
78
+ sage/repl/attach.py,sha256=tgnViiFNPZWsxw_FNpoKTmkVXX1NJmhVeWNOIlmwYa8,19805
79
79
  sage/repl/configuration.py,sha256=rYmzn3UV6Azp4-_Dzq2b3YxmSsZ-0ZjYIoWiDQpqHo8,6040
80
80
  sage/repl/image.py,sha256=yrzjDnCdtbS5ZVnszqEgqctrL1s7nnFVtrs_TsuMciQ,9343
81
81
  sage/repl/inputhook.py,sha256=o3Z6kWs_37yOBMZzoJNj48ajAc3KkMW3M8gydruEFrY,2506
82
82
  sage/repl/interface_magic.py,sha256=WFAC_HHNmenOfCF8IXq3FOnNGX799BiEJdkg7p346f4,9412
83
- sage/repl/interpreter.py,sha256=Cd_jFjPtUluTmnkJcQPuXb2HGMS3WalWZFVBWkYdhWw,30543
84
- sage/repl/ipython_extension.py,sha256=Dy_6iRcNnmPEujPEL9HwTC3PlppmRS36fU5fIyty5T0,23103
83
+ sage/repl/interpreter.py,sha256=K2sKkS-Oyv9V8eF52GW35LczeT_8M2lPomGyGM_ca1w,30434
84
+ sage/repl/ipython_extension.py,sha256=mTwt4-z9MCBh8OFj_FqlHa44FCLoNSh6V6_R2cs-yPg,23164
85
85
  sage/repl/ipython_tests.py,sha256=6sXyZJnKMcXeS7wvBZ8X6Lx6juBy27RDxLbmsrEVY20,4807
86
- sage/repl/load.py,sha256=MiwhCTA8RpDbF65-oRrbw8xO003SqDnVKzGQePFwQuE,11414
86
+ sage/repl/load.py,sha256=njH3sRvMV56p0-Nbe2IpQqA6u2k0rxAPfCVWdCHvdzk,11824
87
87
  sage/repl/preparse.py,sha256=fkMBb1voFvGD1iagtQk2nareICdHZpkJmAqOYEI_yOo,77110
88
88
  sage/repl/prompts.py,sha256=wyd7z3sdOaOevvnqfwrQBiCaj6hLiWYJ3De6eePbQEA,2253
89
89
  sage/repl/user_globals.py,sha256=FQA7tNioBoyHNw8SQCbA_teqMVtPRTYlql44KeYA18w,5930
@@ -99,7 +99,7 @@ sage/repl/ipython_kernel/all_jupyter.py,sha256=hpNw0ZQK89PkavLZD0UWqgPcA4AneXEIc
99
99
  sage/repl/ipython_kernel/install.py,sha256=Em9WxtSjX1iLcyXTQ6oXlR1zFfWAvKZYMBduTchTr-Q,9543
100
100
  sage/repl/ipython_kernel/interact.py,sha256=I5mckNe8bwOVhGexvNutXR3KwlY0WhwHPBzOked692A,11578
101
101
  sage/repl/ipython_kernel/kernel.py,sha256=uFQUDxGPtcLcP0YjNvFvLHNM-IIqPTpjG0sX4kF_pYs,7117
102
- sage/repl/ipython_kernel/widgets.py,sha256=EoUxblH1LHMi4YZaknH7y0ohymntuoB7_ytEkIAh5vk,14860
102
+ sage/repl/ipython_kernel/widgets.py,sha256=8AVDJcqNDRyZ7avLaIUAf79U4DOPlYglPAPDTjL2lZI,14853
103
103
  sage/repl/ipython_kernel/widgets_sagenb.py,sha256=wJTtH1v4jG15ORslYxx6tW-lfJRK9q44AlG-Iq3u-KY,20153
104
104
  sage/repl/rich_output/__init__.py,sha256=yHVVV_o6hHdQ5UscMtypHyqv_kl6uGC8SpkAsugLBCQ,132
105
105
  sage/repl/rich_output/backend_base.py,sha256=HvMaVFC0MfqKAnabvvotaH027xbsVp-NFz_KDYiqjZI,22159
@@ -156,7 +156,7 @@ sage/tests/startup.py,sha256=G8Co8afXEC1FO9pyFlryBzLXXwY40_BcWrimaPadw3w,1185
156
156
  sage/tests/symbolic-series.py,sha256=5WlGSwW4eq-Ydev0jYtLDtuk1KCIJ7QCNE0IhZpc37Q,2991
157
157
  sage/tests/sympy.py,sha256=SGzxN4faL0Y3lokTYV_n_IYjf65pc1foBfLbxDhPDgk,431
158
158
  sage/tests/test_deprecation.py,sha256=Y2uvLozCshTPhQgfAxT_pAkkgX5Q16yJwQ0CleKHDJw,917
159
- passagemath_repl-10.5.5.dist-info/METADATA,sha256=JxPE596sO9D_RbDohvvqBfVfuw_vGTCqQo3u1h8uGUI,3145
160
- passagemath_repl-10.5.5.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
161
- passagemath_repl-10.5.5.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
162
- passagemath_repl-10.5.5.dist-info/RECORD,,
159
+ passagemath_repl-10.5.8.dist-info/METADATA,sha256=Z9FCTyIi_NqelrM3HF1NOKZIulhTwfHBrmHDX-Xt-DM,3145
160
+ passagemath_repl-10.5.8.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
161
+ passagemath_repl-10.5.8.dist-info/top_level.txt,sha256=hibFyzQHiLOMK68qL1OWsNKaXOmSXqZjeLTBem6Yy7I,5
162
+ passagemath_repl-10.5.8.dist-info/RECORD,,
sage/doctest/control.py CHANGED
@@ -498,7 +498,7 @@ class DocTestController(SageObject):
498
498
  if pkg.name in options.hide:
499
499
  continue
500
500
  # Skip features for which we have a more specific runtime feature test.
501
- if pkg.name in ['bliss', 'buckygen', 'coxeter3', 'cvxpy', 'database_graphs', 'eclib', 'ecm', 'fricas', 'frobby', 'gfan', 'giac', 'jmol', 'latte_int', 'macaulay2', 'mcqd', 'meataxe', 'msolve', 'palp', 'plantri', 'polytopes_db', 'qepcad', 'rubiks', 'sirocco', 'sympow', 'tdlib', 'topcom']:
501
+ if pkg.name in ['4ti2', 'bliss', 'buckygen', 'coxeter3', 'cvxpy', 'database_graphs', 'eclib', 'ecm', 'fricas', 'frobby', 'gfan', 'giac', 'jmol', 'latte_int', 'macaulay2', 'mcqd', 'meataxe', 'msolve', 'palp', 'plantri', 'polytopes_db', 'qepcad', 'rubiks', 'sirocco', 'sympow', 'tdlib', 'topcom']:
502
502
  continue
503
503
  if pkg.is_installed() and pkg.installed_version == pkg.remote_version:
504
504
  options.optional.add(pkg.name)
sage/misc/cython.py CHANGED
@@ -579,6 +579,9 @@ def cython_import_all(filename, globals, **kwds):
579
579
 
580
580
  - ``filename`` -- string; name of a file that contains Cython
581
581
  code
582
+
583
+ See the function :func:`sage.misc.cython.cython` for documentation
584
+ for the other inputs.
582
585
  """
583
586
  m = cython_import(filename, **kwds)
584
587
  for k, x in m.__dict__.items():
@@ -622,6 +625,9 @@ def compile_and_load(code, **kwds):
622
625
  - ``code`` -- string containing code that could be in a .pyx file
623
626
  that is attached or put in a %cython block in the notebook
624
627
 
628
+ See the function :func:`sage.misc.cython.cython` for documentation
629
+ for the other inputs.
630
+
625
631
  OUTPUT: a module, which results from compiling the given code and
626
632
  importing it
627
633
 
sage/repl/attach.py CHANGED
@@ -318,8 +318,12 @@ def attach(*files):
318
318
 
319
319
  .. SEEALSO::
320
320
 
321
- :meth:`~sage.repl.load.load` is the same as :func:`attach`, but
322
- does not automatically reload a file when it changes.
321
+ :func:`~sage.repl.load.load` is the same as :func:`attach`, but
322
+ does not automatically reload a file when it changes unless
323
+ ``attach=True`` is passed.
324
+
325
+ ``%attach`` magic can also be used, see
326
+ :meth:`~sage.repl.ipython_extension.SageMagics.attach`.
323
327
 
324
328
  EXAMPLES:
325
329
 
sage/repl/interpreter.py CHANGED
@@ -75,8 +75,7 @@ Check that Cython source code appears in tracebacks::
75
75
 
76
76
  sage: from sage.repl.interpreter import get_test_shell
77
77
  sage: shell = get_test_shell()
78
- sage: print("dummy line"); shell.run_cell('1/0') # known bug (meson doesn't include the Cython source code) # see #25320 for the reason of the `...` and the dummy line in this test
79
- dummy line
78
+ sage: shell.run_cell('1/0') # known bug (meson doesn't include the Cython source code)
80
79
  ...
81
80
  ZeroDivisionError...Traceback (most recent call last)
82
81
  ...
@@ -107,6 +107,10 @@ class SageMagics(Magics):
107
107
 
108
108
  - ``s`` -- string; the file to be loaded
109
109
 
110
+ .. SEEALSO::
111
+
112
+ This is the same as :func:`~sage.repl.load.load`.
113
+
110
114
  EXAMPLES::
111
115
 
112
116
  sage: import os
@@ -133,6 +137,10 @@ class SageMagics(Magics):
133
137
 
134
138
  - ``s`` -- string. The file to be attached
135
139
 
140
+ .. SEEALSO::
141
+
142
+ This is the same as :func:`~sage.repl.attach.attach`.
143
+
136
144
  EXAMPLES::
137
145
 
138
146
  sage: from sage.repl.interpreter import get_test_shell
@@ -395,14 +403,13 @@ class SageMagics(Magics):
395
403
  ....: ''')
396
404
  UsageError: unrecognized arguments: --help
397
405
 
398
- Test invalid quotes (see :mod:`sage.repl.interpreter` for explanation of the dummy line)::
406
+ Test invalid quotes::
399
407
 
400
408
  sage: # needs sage.misc.cython
401
- sage: print("dummy line"); shell.run_cell('''
409
+ sage: shell.run_cell('''
402
410
  ....: %%cython --a='
403
411
  ....: print(1)
404
412
  ....: ''')
405
- dummy line
406
413
  ...
407
414
  ValueError...Traceback (most recent call last)
408
415
  ...
@@ -119,7 +119,7 @@ class TransformWidget:
119
119
  <... 'dict'>
120
120
  """
121
121
  self.__transform = kwds.pop("transform", None)
122
- return super().__init__(*args, **kwds)
122
+ super().__init__(*args, **kwds)
123
123
 
124
124
  def get_value(self):
125
125
  """
sage/repl/load.py CHANGED
@@ -87,6 +87,14 @@ def load(filename, globals, attach=False):
87
87
 
88
88
  from t import *
89
89
 
90
+ .. NOTE::
91
+
92
+ The global ``load`` function is :func:`sage.misc.persist.load`,
93
+ which delegates to this function for code file formats.
94
+
95
+ ``%runfile`` magic can also be used, see
96
+ :meth:`~sage.repl.ipython_extension.SageMagics.runfile`.
97
+
90
98
  INPUT:
91
99
 
92
100
  - ``filename`` -- string (denoting a filename or URL) or a :class:`Path` object
@@ -97,13 +105,15 @@ def load(filename, globals, attach=False):
97
105
  - ``attach`` -- boolean (default: ``False``); whether to add the
98
106
  file to the list of attached files
99
107
 
100
- Loading an executable Sage script from the command prompt will run whatever
101
- code is inside an
108
+ Loading an executable Sage script from the :ref:`command line <section-command-line>`
109
+ will run whatever code is inside an
110
+
111
+ ::
102
112
 
103
113
  if __name__ == "__main__":
104
114
 
105
115
  section, as the condition on ``__name__`` will hold true (code run from the
106
- command prompt is considered to be running in the ``__main__`` module.)
116
+ command line is considered to be running in the ``__main__`` module.)
107
117
 
108
118
  EXAMPLES:
109
119
 
@@ -159,7 +169,8 @@ def load(filename, globals, attach=False):
159
169
 
160
170
  sage: sage.repl.load.load('https://raw.githubusercontent.com/sagemath/sage-patchbot/3.0.0/sage_patchbot/util.py', globals()) # optional - internet
161
171
 
162
- We attach a file::
172
+ We attach a file (note that :func:`~sage.repl.attach.attach`
173
+ is equivalent, but available at the global scope by default)::
163
174
 
164
175
  sage: t = tmp_filename(ext='.py')
165
176
  sage: with open(t, 'w') as f: