Skip to content

schererant/fall-2020-qml

Repository files navigation

QML - Mixed Squad

Install pipenv

Open your python console and

pip install pipenv

Install dependencies

Install python dependencies from Pipfile.lock in a new virtualenv (this might take some time)

pipenv install

Start pipenv shell

Start a pipenv shell. Inside this shell is where your dependencies from the previous step were installed. The dependencies can only be accessed inside the shell.

pipenv shell

Start jupyter lab

Once instide the shell, start a jupyter lab with the following command. This should open a jupyter lab notebook environment in a browser.

jupyter lab

If you prefer jupyter notebook (old style stuff):

jupyter notebook

Exit pipenv shell

Simply type exit to get out. Or CNTR + D

exit

Install a new python package

If you need a new package, there are 2 ways to do it.

1. Add package to Pipenv file manually

Open the Pipenv file and add the package name and version. Then run this command (outside the pipenv shell). This will update the lock file

pipenv update

2. Add package from command line

In the command line (outside the pipenv shell), add the package directly running this command:

pipenv install mypackagename==1.2.3

Final remarks

Clean notebook outputs before commit:

jupyter nbconvert --clear-output --inplace qubit-operations.ipynb

About

IBM Q Quantum Machine Learning Course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •