How can I open jupyter notebook in venv to my drake work correct

Viewed 31

I install drake via pip in venv and I want open files from course underactuated. I start venv by typing:

source env/bin/activate

Drake installed correct because of output of python3 -c 'import pydrake.all; print(pydrake.__file__)':

(env) dmitriy@dmitriy:~/git/underactuated$ python3 -c 'import pydrake.all; print(pydrake.__file__)'
/home/dmitriy/env/lib/python3.8/site-packages/pydrake/__init__.py

But when I try run it in Jupyter notebook with Kernel env I have:

ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import pydrake.all; print(pydrake.__file__)

ModuleNotFoundError: No module named 'pydrake'

How can I open jupyter notebook in venv to my drake work correct ?

1 Answers
Related