1 | initial version |

To run gp in your jupyter notebook, you would better use the pari/gp kernel

To run a single cell in gp mode while you are using the SageMath kernel you can use

%%gp forperm(3, p, print(p))

To load a script from Sage, let say gp_script.gp you can use the method read

gp.read('my_script.gp')

this is valid in Jupyter and in the console.

2 | No.2 Revision |

To run gp in your jupyter notebook, you would better use the pari/gp kernel

To run a single cell in gp mode while you are using the SageMath kernel you can use

%%gp forperm(3, p, print(p))

To load a script from Sage, let say gp_script.gp you can use the method read

gp.read('my_script.gp')

this is valid in Jupyter and in the console.

3 | No.3 Revision |

To run gp in your jupyter notebook, you would better use the pari/gp kernel

To run a single cell in gp mode while you are using the SageMath kernel you can use

%%gp

To load a script from Sage, let say gp_script.gp you can use the method read

gp.read('my_script.gp')

~~this~~This is valid in Jupyter and in the console.

4 | No.4 Revision |

To run gp in your jupyter notebook, you would better use the pari/gp

~~kernel~~kernel.-
~~To~~Next, to run a single cell in gp mode while you are using the SageMath kernel you can use`%%gp forperm(3, p,`

~~print(p))~~ -
~~To~~Finally, to load a script from Sage, let say gp_script.gp you can use the method readgp.read('my_script.gp')

`gp.read('my_script.gp')`

This last method is valid in Jupyter and in the console.

```
print(p))
```

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.