Installation
It’s easiest to install pdata from the conda-forge channel using Conda.
For example, you can create a new conda environment including pdata, QCoDeS, and JupyterLab like this:
conda create -n pdatasandbox --channel conda-forge pdata qcodes jupyterlab
Here, pdatasandbox is an arbitrary name for the new
environment. If needed, familiarize yourself with the basics of Conda
environments.
You can also activate the conda-forge channel for an existing environment or all environments:
conda config --add channels conda-forge # Add --env if you want this only for the currently active conda environment
conda config --set channel_priority strict # --env
After which you can run (inside the appropriate conda environment):
conda install pdata
Often, however, it’s simpler and more robust to create a new conda
environment and specify all the required packages in one go in the
create command, as in the pdatasandbox example
above. In general, you should consider conda environments disposable.
pip install
If you’re not using Conda, download the latest version from qithub and install with pip. That is,
run this in the root folder where setup.cfg is:
pip install .
Note that you also need a C++ compiler.
Alternatively, you can disable fast_parser by setting
FAST_PARSER_ENABLED=False in setup.py.
Requirements
Required packages are listed in setup.cfg. Here are some of them:
requests, ipykernel, ipython, notebook, ipylab (for storing .ipynb measurement scripts)
ipywidgets (for dataexplorer)
matplotlib (for dataexplorer)
Setuptools (for installation)
Cython (for fast_parser)