Bug 457681 - How do I use cantor python notebook with a virtualenv?
Summary: How do I use cantor python notebook with a virtualenv?
Status: CONFIRMED
Alias: None
Product: cantor
Classification: Applications
Component: python3-backend (show other bugs)
Version: 22.04.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Cantor Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-09 14:19 UTC by kndevl
Modified: 2025-03-28 17:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kndevl 2022-08-09 14:19:47 UTC
I can see that numpy is imported from system python path.

import numpy as np
print(np.__file__)

prints '/usr/lib/python3.10/site-packages/numpy/__init__.py'. I assume it uses the system python. As a feature request, can cantor use a custom virtualenv?
Comment 1 YOYOWORKOUT 2023-05-17 15:35:56 UTC
Hi

I used to create an XDG launcher , and for command as below  (you can see the path of my venv in the command)

Exec = bash -c "source /opt/frameworks/python/venvs/default/bin/activate && cantor -qwindowicon cantor -qwindowtitle Cantor--Jupyter--Frontend %U"

it works nice ! except for IPython %<command_name>  , I get an error , but I can use all libs installed in the venv.

regards