Skip to content

Commit

Permalink
resolve comparabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rkishony committed May 22, 2024
1 parent da4392e commit 65db14e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Follow these four steps:

#### 2. Install Jupyter lab (optional):

```pip install jupyterlab```
```pip install jupyterlab==3.4.7```

#### 3. Run the 'install.py' script:

Expand Down
9 changes: 6 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,12 @@ def install_click_if_necessary():

def is_jupyter_installed():
try:
subprocess.check_call(["jupyter", "lab", "path"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except Exception: # noqa
return False
output = subprocess.check_output(["jupyter", "lab", "--version"], stderr=subprocess.STDOUT)
version = output.decode().strip()
if not version.startswith('3.'):
show_failure_message_and_exist("PyQuibbler is only compatible with Jupyter lab version 3.x.")
except subprocess.CalledProcessError as e:
show_failure_message_and_exist(f'Failed to get jupyter lab version. Exception :\n{e}')
return True


Expand Down

0 comments on commit 65db14e

Please sign in to comment.