First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. To run gp in your jupyter notebook, you would better use the pari/gp kernel

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

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

  3. 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.

click to hide/show revision 2
No.2 Revision
  1. To run gp in your jupyter notebook, you would better use the pari/gp kernel

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

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

  3. 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.

click to hide/show revision 3
No.3 Revision
  1. To run gp in your jupyter notebook, you would better use the pari/gp kernel

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

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

  3. 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.

click to hide/show revision 4
No.4 Revision
  1. To run gp in your jupyter notebook, you would better use the pari/gp kernel kernel.

  2. 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))

  3. print(p))
  4. To Finally, to load a script from Sage, let say gp_script.gp you can use the method read

    gp.read('my_script.gp')

    gp.read('my_script.gp')

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