Bug 457681

Summary: How do I use cantor python notebook with a virtualenv?
Product: [Applications] cantor Reporter: kndevl
Component: python3-backendAssignee: Cantor Bugs <cantor-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: alexander.semke, yoyo.work.out
Priority: NOR    
Version First Reported In: 22.04.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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