Maintaining a development environment #2233
Replies: 5 comments 12 replies
-
I'm seeing the same error when setting up a fresh environment (i.e. running One potential solution is to install a global version of jupyter notebook and use that instead of a one inside your mitiq virtual environment. If you try this, let me know if it works! Personally, I use the Jupyter extension for vscode and let it handle the installs. I'm not totally sure where it puts the |
Beta Was this translation helpful? Give feedback.
-
This works partially. The import paths have to be consistent for the virtual environment and In my virtual environment, I can import I think the VS Code extension is a better option. |
Beta Was this translation helpful? Give feedback.
-
I have used the current 0.34.0 with dev-requirements.txt without some test packages and notebook 6.4.13 |
Beta Was this translation helpful? Give feedback.
-
Here is a report from my recent trip to dependency hell 🔥 Note that I use Jupyterlab instead of Jupyter Notebook, but the conflicts may be similar. When installing Jupyterlab with
So far, nothing new from the warning message in @purva-thakre's original post. The result of
By looking at the commit history of jupyterlab, It turns out that a dependency on httpx>=0.25.0 was introduced recently, so one could pin
In any case, it sounds wrong to retro-fit the version of jupyterlab to please the rest of the dependencies. The right way is to move forward with Here is how mitiq depends on an older version of
In other words, |
Beta Was this translation helpful? Give feedback.
-
Going to go ahead and close this discussion since we know which dependency is causing this and there's an open issue related to it. |
Beta Was this translation helpful? Give feedback.
-
How does everyone here use Jupyter notebook in their development environment?
The discussion in today's Community Call compelled me to create a new virtual environment for the newer dependencies. However, there is an incompatibility when I try to install Jupyter notebook.
I have had this happen in the past as well. #2145 (comment)
Same as last time, I had to use the following to be able to use Jupyter notebook.
I am curious to know if there's a better workaround to the issue I tend to run into besides listing Jupyter notebook as a dev dependency.
Edited to add: This workaround is not ideal as it causes other additional issues https://discord.com/channels/764231928676089909/1220012039494308011
Beta Was this translation helpful? Give feedback.
All reactions