Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta-ticket: Use system Jupyter notebook / JupyterLab #30306

Open
mkoeppe opened this issue Aug 6, 2020 · 29 comments
Open

Meta-ticket: Use system Jupyter notebook / JupyterLab #30306

mkoeppe opened this issue Aug 6, 2020 · 29 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Aug 6, 2020

We wish to support all combinations of the following scenarios:

  1. Running notebook installed in SAGE_LOCAL from SPKG
  2. Running notebook installed in the system python, or in some venv unrelated to Sage
  3. Running notebook on a different host (which has no Sage installation), connecting to the Sage Jupyter kernel (using ssh, or https://pypi.org/project/jupyter-kernel-gateway, or ...)

A. Sage-the-distribution
B. Distribution packaging of Sage (Debian, Conda, ...)
C. Pip-installed sagelib (#30036)

The following data items are relevant:

i. The kernelspec
iii. threejs, jsmol, mathjax data
iiiii. Built Sage documentation

The following installation locations are relevant:

a. data installed with sagelib within the Sage venv, such as src/sage/ext_data
b. data installed within SAGE_LOCAL as part of Sage-the-distribution
c. data installed as "resources" associated with the kernelspec, on the host where notebook runs (see jupyter kernelspec list)
d. data installed as Jupyter nbextensions on the host where notebook runs (see jupyter nbextension list)

Tickets for Sage 9.2:

Tickets for Sage 9.3:

Tickets for Sage 9.4:

Completed in Sage 10.x:

Open:

CC: @antonio-rojas @kiwifb @slel @nbruin @paulmasson @egourgoulhon @kwankyu @jcamp0x2a @williamstein @mezzarobba

Component: user interface

Keywords: sd110, sd111

Issue created by migration from https://trac.sagemath.org/ticket/30306

@mkoeppe mkoeppe added this to the sage-9.2 milestone Aug 6, 2020
@mkoeppe

This comment has been minimized.

@kwankyu

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.3 Aug 29, 2020
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Oct 26, 2020

Changed keywords from none to sd110

@mkoeppe mkoeppe changed the title Meta-ticket: Use system Jupyter Meta-ticket: Use system Jupyter notebook / JupyterLab Oct 26, 2020
@mkoeppe
Copy link
Member Author

mkoeppe commented Nov 22, 2020

Changed keywords from sd110 to sd110, sd111

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 24, 2021

comment:26

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 Mar 24, 2021
@slel

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Aug 11, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.5, sage-9.6 Dec 18, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.6, sage-9.7 May 3, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.7, sage-9.8 Sep 19, 2022
@mkoeppe mkoeppe modified the milestones: sage-9.8, sage-9.9 Jan 7, 2023
@mkoeppe mkoeppe removed this from the sage-10.0 milestone Mar 16, 2023
@mkoeppe
Copy link
Member Author

mkoeppe commented Feb 14, 2024

@dimpase Reminder that this issue is still open and does not simply go away by demands to remove packaging for Jupyter.

@King-Ozymandias
Copy link

King-Ozymandias commented Aug 5, 2024

If you guys could check, I think I got it working by installing through conda-forge (py3.12; other versions and methods of install should probably also work), then installing:

  • qt6 got pulled in by something else before, but would've got pulled in anyways, I think
  • jupyter-lab (jupyter might have sufficed)
  • sage

and the command to "bind them all" seems to be:
jupyter qtconsole --kernel=sagemath

Hope it works for you, what I've got in the gui console:

Jupyter QtConsole 5.5.2
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30                     │
│ Using Python 3.11.2. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
In [1]:

EDIT: Seems like it somehow uses system python and not the user-installed conda one, drats, but I'm sure you'll know how to solve that ;-)

@King-Ozymandias
Copy link

King-Ozymandias commented Aug 5, 2024

PS: If you wanna cry your eyes out wrt. "We have more now, but in Python, we will never be able to replicate such developer experience", look at PolyMath (https://github.com/PolyMathOrg/PolyMath) and Glamorous Toolkit (https://gtoolkit.com/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants