I am using Kubuntu 16.04. I have recently installed Sage 8.1 from source and it works perfect. However, I am not able to launch sage notebook from the desktop file created.
I have created a notebook.sage file and desktop entry as mentioned here <http://doc.sagemath.org/html/en/installation/icon.html>. The notebook.sage file contains the single line: notebook(open_viewer=True) My desktop icon contains the lines: [Desktop Entry] Comment[en_IN]= Comment= Comment[de]= Encoding=UTF-8 Exec=/usr/local/bin/sage /home/karthikjayd/Sage/notebook.sage GenericName[en_IN]= GenericName= GenericName[de]= Icon=/home/karthikjayd/Sage/sage-logo.png MimeType= Name[en_IN]=Sage Name=Sage Name[de]=Sage Path=/home/karthikjayd StartupNotify=true Terminal=true TerminalOptions= Type=Application X-DBUS-ServiceName= X-DBUS-StartupType=none X-DCOP-ServiceType= X-KDE-SubstituteUID=false X-KDE-Username= But when I execute the desktop file, a blank terminal window pops up for a fraction of a second, and closes. The same issue is mentioned in this question <https://groups.google.com/forum/#!topic/sage-support/S5s_nmCVQtQ>. I tried executing the code notebook(open_viewer=True) in a sage terminal which gave the following output: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-1-107a1663ddbf> in <module>() ----> 1 notebook(open_viewer=True) /home/karthikjayd/Sage/sage-8.1/src/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3703)() 352 True 353 """ --> 354 return self.get_object()(*args, **kwds) 355 356 def __repr__(self): /home/karthikjayd/Sage/sage-8.1/local/lib/python2.7/site-packages/sagenb/notebook/notebook_object.pyc in __call__(self, *args, **kwds) 241 """ 242 def __call__(self, *args, **kwds): --> 243 return self.notebook(*args, **kwds) 244 245 notebook = run_notebook.notebook_run /home/karthikjayd/Sage/sage-8.1/local/lib/python2.7/site-packages/sagenb/notebook/run_notebook.pyc in notebook_run(self, directory, port, interface, port_tries, secure, reset, accounts, openid, server_pool, ulimit, timeout, doc_timeout, upload, automatic_login, start_path, fork, quiet, server, profile, subnets, require_login, open_viewer, address) 495 raise ValueError("""The subnets parameter is no longer supported. Please use a firewall to block subnets, or even better, volunteer to write the code to implement subnets again.""") 496 if require_login is not None or open_viewer is not None: --> 497 raise ValueError("The require_login and open_viewer parameters are no longer supported. " 498 "Please use automatic_login=True to automatically log in as admin, " 499 "or use automatic_login=False to not automatically log in.") ValueError: The require_login and open_viewer parameters are no longer supported. Please use automatic_login=True to automatically log in as admin, or use automatic_login=False to not automatically log in. I then tried running notebook(automatic_login=True) from the sage terminal, which opened up the sage notebook in Firefox. So tried changing the open_viewer=True code to automatic_login=True in the notebook.sage file. Still the same problem persists. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
