Ask Your Question

Jozef's profile - activity

2021-03-17 19:30:58 +0200 received badge  Famous Question (source)
2020-11-11 23:00:17 +0200 received badge  Notable Question (source)
2020-11-11 23:00:17 +0200 received badge  Popular Question (source)
2018-11-02 18:56:33 +0200 received badge  Nice Question (source)
2018-10-18 16:26:56 +0200 commented answer How to attach a simple Sage script in a Sage Jupyter notebook

Thank you. The command load works in Windows as you described for Linux. It is sufficient for my purposes.

2018-10-16 18:11:04 +0200 received badge  Student (source)
2018-10-16 15:54:57 +0200 asked a question How to attach a simple Sage script in a Sage Jupyter notebook

My two PCs' configurations: Windows 8.1, Windows 10
Sage version: SageMath 8.3, windows installer 0.4
github.com/sagemath/sage-windows/releases

I want to use a Sage script in a Sage Jupyter Notebook (Jupyter with Sage as a kernel).

I have tried the following procedure:

  1. I put a Sage code (definition of a function) in text file named Script.sage.
  2. In a Jupyter notebook I tried command attach('Script.Sage')
  3. I got a usage error: UsageError: Invalid GUI request 'sage', valid ones are:[None, 'widget', 'qt5', 'qt', 'nbagg', 'osx', 'gtk', 'qt4', 'gtk3', 'notebook', 'tk', 'ipympl', 'inline', 'asyncio', 'wx']

Some advice about where is a problem? What to do? Or is there another procedure how to use a Sage code written in separate files in a Jupyter notebook?