Ask Your Question

A list of all the %something

asked 2023-04-16 16:33:46 +0200

Cyrille gravatar image

Is there somewhere a list of the %something and their explanations. I have discovered recently %hist. I wonder if there are other beyond the traditional %display latex.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2023-04-16 18:24:21 +0200

Some of these come from IPython, and they are documented at I don't think there is a comprehensive list of all of them in Sage's documentation, though. If you type %[TAB], then a list will pop up. From the command line you can actually see the whole list, whereas in the notebook you have to scroll.

sage: % [then I hit the TAB key]
   %%!              %ed              %logstate        %polymake        %runfile        
   %%HTML           %edit            %logstop         %%polymake       %sage0          
   %%SVG            %env             %ls              %popd            %%sage0         
   %alias           %%file           %lsmagic         %pprint          %save           
   %alias_magic     %%fortran        %lx              %precision       %sc             
   %attach          %gap             %macro           %prun            %%script        
   %autoawait       %%gap            %magic           %%prun           %set_env        
   %autocall        %gp              %magma           %psearch         %%sh            
   %autoindent      %%gp             %%magma          %psource         %singular       
   %automagic       %gui             %man             %pushd           %%singular      
   %%bash           %hist            %%markdown       %pwd             %store          
   %bookmark        %history         %matplotlib      %pycat           %%svg           
   %%capture        %%html           %maxima          %pylab           %sx             
   %cat             %iload           %%maxima         %%pypy           %%sx            
   %cd              %%javascript     %mkdir           %%python         %system         
   %clear           %%js             %more            %%python2        %%system        
   %colors          %killbgscripts   %mv              %%python3        %tb             
   %conda           %%latex          %notebook        %quickref        %time           
   %config          %ldir            %page            %recall          %%time          
   %cp              %less            %paste           %rehashx         %timeit         
   %cpaste          %lf              %pastebin        %reload_ext      %%timeit        
   %crun            %lk              %pdb             %rep             %unalias        
   %%cython         %ll              %pdef            %rerun           %unload_ext     
   %debug           %load            %pdoc            %reset           %who            
   %%debug          %load_ext        %%perl           %reset_selective %who_ls         
   %dhist           %loadpy          %pfile           %rm              %whos           
   %dirs            %logoff          %pinfo           %rmdir           %%writefile     
   %display         %logon           %pinfo2          %%ruby           %xdel           
   %doctest_mode    %logstart        %pip             %run             %xmode

Similarly there is no collected list of their explanations, but you can evaluate %run? (for example) to see the documentation for the individual "magic" commands.

edit flag offensive delete link more


Thanks John I definitevly have not the good reflexes

Cyrille gravatar imageCyrille ( 2023-04-17 10:25:23 +0200 )edit

answered 2023-04-17 07:19:54 +0200

Emmanuel Charpentier gravatar image

This is a known problem...

The Sage documentation may help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2023-04-16 16:33:46 +0200

Seen: 155 times

Last updated: Apr 17 '23