Skip to main content

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:

  1. First, create a folder where the venv will be stored:

    mkdir ~/env_directory
    
  2. Create the venv:

    python3 -m venv ~/env_directory/towbintools
    
  3. To activate the venv:

    source ~/env_directory/towbintools/bin/activate
    
  4. Whenever you are done working, you can deactivate it with:

    deactivate
    

How to add a python venv to Jupyter

  1. First, make sure Jupyter and related packages are installed:

    pip3 install jupyter ipykernel
    
  2. Add your venv to Jupyter:

    python3 -m ipykernel install --user --name=towbintools
    
  3. 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

  1. First, make sure build is installed:

    pip3 install build
    
  2. Go to the package directory, eg:

    cd ~/towbintools
    
  3. Build the package:

    python3 -m build
    
  4. Install the package you just built:

    pip3 install dist/*.whl
    

You're now all set!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

towbintools-0.0.8.tar.gz (42.3 kB view hashes)

Uploaded Source

Built Distribution

towbintools-0.0.8-py3-none-any.whl (53.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page