All the tools used by the Towbin Lab !
Project description
towbintools!
This is the package containing all the important functions used by the Towbin Lab of the University of Bern. Most of the code is a python translation of our old Matlab pipeline.
Setting up a Virtual Environment
Using a virtual environment isolates your package dependencies and settings from your system Python. Here's how you can set one up:
-
First, create a folder where the venv will be stored:
mkdir ~/env_directory
-
Create the venv:
python3 -m venv ~/env_directory/towbintools
-
To activate the venv:
source ~/env_directory/towbintools/bin/activate
-
Whenever you are done working, you can deactivate it with:
deactivate
How to add a python venv to Jupyter
-
First, make sure Jupyter and related packages are installed:
pip3 install jupyter ipykernel
-
Add your venv to Jupyter:
python3 -m ipykernel install --user --name=towbintools
-
If you're using VSCode, reload VSCode and you should be able to find the kernel.
Install the package using pip
Simply run the following command:
pip3 install towbintools
Build the package and install it
-
First, make sure build is installed:
pip3 install build
-
Go to the package directory, eg:
cd ~/towbintools
-
Build the package:
python3 -m build
-
Install the package you just built:
pip3 install dist/*.whl
You're now all set!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for towbintools-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ea95819da6d20cb7489193aafe0bf18006fd3025b0fb30639083460bbf1d6a |
|
MD5 | 9ea991220df4557ccc3d2570656518e4 |
|
BLAKE2b-256 | 9987019289af1f9142c1413755524505e9d527b17bcd1fe657c6f02b409b4708 |