Hi there! Just have a quick question re: running ...
# questions
r
Hi there! Just have a quick question re: running kedro-viz from within a virtual environment. For some reason it seems to always pick the version of
kedro-viz
from my main Python and not the one in the virtual env (i.e., I have v11.0.0 in my main Python, but v11.0.1 in my virtual env, and running
kedro viz
from within the virtual env is picking the 11.0.0 version). Is it just something I'm doing incorrectly? Is that the expected behaviour? Thanks!
r
nope that's not expected behavior. Your virtual environment should run the version of kedro-viz installed on it.
are you using conda ?
r
No, I used vanilla Python with
uv
to set up the project (we're big fans of
uv
for all of our projects). I'm trying to find an older project that we set up using
Poetry
, but having an issue getting those older ones running...
And I've tried both
kedro viz
and
uv run kedro viz
(both with the venv activated), and same behaviour.
r
Could you try uninstalling
kedro-viz
from your main Python and then see if the virtualenv picks up the correct version?
r
That seems to work! I wonder what's happening under the hood?
r
sometimes the global install interferes with the venv (not particular to kedro-viz though, it has happened to me with other packages :))
👍 1
r
Well, fun little rabbit hole for a Thursday morning! Thanks for the help!