Ask Your Question

Revision history [back]

  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.

  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.

  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.

  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.