Opened 12 years ago

Last modified 8 years ago

#11223 new defect

Ipython magic commands don't get preparsed

Reported by: Maarten Derickx Owned by: William Stein
Priority: major Milestone: sage-6.4
Component: user interface Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


the following was posted in 

One problem, these things don't seem to be preparsed.

| Sage Version 4.6.2, Release Date: 2011-02-25                       | 
| Type notebook() for the GUI, and license() for information.        | 
sage: %bg factor(next_prime(10^30)*next_prime(10^40)) 
Starting job # 0 in a separate thread. 
sage: jobs.status() 
Completed jobs: 
0 : factor(next_prime(10^30)*next_prime(10^40)) 
sage: jobs[0].result 
23 * 37 


Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> 10^30 
>>> 10^40 

Change History (8)

comment:1 Changed 12 years ago by Maarten Derickx

This could probably be fixed by overwriting eiter the input_prefilter() or pre_runcode_hook() as described on

comment:2 Changed 10 years ago by Jason Grout

#12719 also fixes this.

comment:3 Changed 10 years ago by John Palmieri

After applying the patches at #12719, I see

sage: %bg factor(next_prime(10^30)*next_prime(10^40))
ERROR: Line magic function `%bg` not found.

So I guess it is "fixed" in one sense, but not very satisfactorily.

comment:4 Changed 10 years ago by Jason Grout

Ah, good point. In fact, I think %bg isn't implemented yet in IPython. It's on the list of things to do by IPython developers.

comment:5 Changed 9 years ago by Jeroen Demeyer

Milestone: sage-5.11sage-5.12

comment:6 Changed 9 years ago by For batch modifications

Milestone: sage-6.1sage-6.2

comment:7 Changed 9 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:8 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4
Note: See TracTickets for help on using tickets.