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

Document installing sagemath kernel without copying documentation #31620

Closed
nbruin opened this issue Apr 8, 2021 · 11 comments
Closed

Document installing sagemath kernel without copying documentation #31620

nbruin opened this issue Apr 8, 2021 · 11 comments

Comments

@nbruin
Copy link
Contributor

nbruin commented Apr 8, 2021

Follow up to #30476: Using jupyter kernelspec to install sagemath kernel results in copying about 2Gb of documentation into the jupyter kernels share directory. That's generally not the spot to put large files/documentation. Document how to avoid this.

Component: documentation

Author: Nils Bruin

Branch/Commit: 79914c2

Reviewer: Matthias Koeppe

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

@nbruin nbruin added this to the sage-9.3 milestone Apr 8, 2021
@nbruin
Copy link
Contributor Author

nbruin commented Apr 8, 2021

comment:1

The procedure to follow would be something like:

  • Use sage -sh -c 'ls -d $SAGE_LOCAL/share/jupyter/kernels/sagemath' to find location of sagemath kernel to install
  • Use jupyter --paths to find eligible data locations (for a "user" install, there will likely be something like $HOME/.local/share/jupyter there.
  • Installing the sagemath kernel should then amount to something like
ln -s `sage -sh -c 'ls -d $SAGE_LOCAL/share/jupyter/kernels/sagemath'` $HOME/.local/share/jupyter

We may want to check/refine these instructions to be a little more robust and/or appropriate for other operating systems, but having this documented in an easily discovered place would help. These instructions should probaly be placed or linked to in src/doc/en/installation/launching.rst

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 8, 2021

comment:2

See also previous discussions in #30298

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 8, 2021

comment:3

Replying to @nbruin:

The procedure to follow would be something like:

  • Use sage -sh -c 'ls -d $SAGE_LOCAL/share/jupyter/kernels/sagemath' to find location of sagemath kernel to install

For this first step, I think we may want to add an option to the sage script that just prints the location

@nbruin
Copy link
Contributor Author

nbruin commented Apr 9, 2021

@nbruin
Copy link
Contributor Author

nbruin commented Apr 9, 2021

New commits:

79914c2Document installing sagemath kernel without copying

@nbruin
Copy link
Contributor Author

nbruin commented Apr 9, 2021

Author: Nils Bruin

@nbruin
Copy link
Contributor Author

nbruin commented Apr 9, 2021

Commit: 79914c2

@nbruin
Copy link
Contributor Author

nbruin commented Apr 9, 2021

comment:6

Replying to @mkoeppe:

Replying to @nbruin:

The procedure to follow would be something like:

  • Use sage -sh -c 'ls -d $SAGE_LOCAL/share/jupyter/kernels/sagemath' to find location of sagemath kernel to install

For this first step, I think we may want to add an option to the sage script that just prints the location

I don't think it's something people need to do very often, so they'd need to look up how to do it anyway. As long as it's easily discovered and a readily copy-pastable formula, I don't think it's so bad if it's a little long. At least it's transparent what is going on for someone with generic bash skills. Let's first get this documented. It's a safe and easy change, so we can still include it in 9.3. Then it'll be up on sagemath.org in the near future and then hopefully search engines can pick it up.

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 9, 2021

comment:7

OK, that's fine with me.

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 9, 2021

Reviewer: Matthias Koeppe

@vbraun
Copy link
Member

vbraun commented Apr 26, 2021

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

3 participants