From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] `jupyter lab` not working in virtual enviroment
Date: Tue, 28 Nov 2023 03:31:12 +0100 [thread overview]
Message-ID: <20231128023112.1Xy6LZz3wMiFtLgGV_UDe4hUE2mXZywgKAA8v_eHpPc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47135@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2027 bytes --]
Closed issue by Eloitor on void-packages repository
https://github.com/void-linux/void-packages/issues/47135
Description:
### Is this a new report?
Yes
### System Info
Void 6.5.9_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFFFFFFFFFFFFFFF
### Package(s) Affected
sagemath-10.1_4 jupyterlab-4.0.7_1
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
I can use sagemath in a virtual environment in `jupyter lab`.
### Actual behaviour
I can use sagemath in a virtualenvironment in the repl, but not with `jupyer lab`.
### Steps to reproduce
1. Install `sagemath` and `jupyterlab`
2. Create a python virtual environment: `python3 -m venv /path/to/venv`
3. Activate the virtual environment: `. /path/to/venv/bin/activate`
4. Run `sage`, output is
```
$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.1, Release Date: 2023-08-20 │
│ Using Python 3.12.0. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
/usr/lib/python3.12/site-packages/IPython/core/interactiveshell.py:913: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
warn(
sage:
```
After this, sage works as expected.
5. Quit sage with `Control + D`.
6. run `jupyter lab`, and create a new sagemath notebook.
The notebook does not work (computations get stuck forever).
```
/path/to/venv/bin/python3: Error while finding module specification for 'sage.repl.ipython_kernel' (ModuleNotFoundError: No module named 'sage')
```
prev parent reply other threads:[~2023-11-28 2:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 14:36 [ISSUE] " Eloitor
2023-11-09 15:21 ` Eloitor
2023-11-26 16:29 ` tornaria
2023-11-27 8:27 ` Eloitor
2023-11-28 2:25 ` tornaria
2023-11-28 2:31 ` classabbyamp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231128023112.1Xy6LZz3wMiFtLgGV_UDe4hUE2mXZywgKAA8v_eHpPc@z \
--to=classabbyamp@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).