Skip to main content

A package that creates python 3.8 virtual environments on Google Colab and Jupyter Notebooks in Linux OS or WSL Systems.

Project description

colabenv

A package that creates python 3.8 virtual environments on Google Colab and Jupyter Notebooks in Linux OS or WSL Systems.

Installation

pypi package:

pip install colabenv

wheel package:

pip install colabenv-0.1-py3-none-any.whl

Import

from colabenv import install_python, create_env, run_in_env, run_python_in_env

Functions

install_python(): 
    """
    Installs python 3.8 and required packages
		
    Args:
    	null
		
    Returns:
        null
    """
create_env(env_name):
    """
    Creates a virtual environment 
	 
    Args:
        env_name (string): the name of the venv, default: 'hackathon'
        parent_of_all_evils_folder (string): the name of the parent folder of the venv, default: os.getcwd()
	 
    Returns:
        os.getcwd()
    """
run_in_env(command, env_name):
    """
    Run OS commands for the venv specified. Prints cwd and output of the command.
	 
    Args:
        command (string): OS command to be run
        env_name (string): the name of the venv, default: 'hackathon'
        parent_of_all_evils_folder (string): the name of the parent folder of the venv, default: os.getcwd()
	 
    Returns:
        null
    """
run_python_in_env(command, env_name):
    """
    Write python 3.8 command for the venv specified. Prints cwd and output of the program.
	 
    Args:
        command (string): OS command to be run
        env_name (string): the name of the venv, default: 'hackathon'
        parent_of_all_evils_folder (string): the name of the parent folder of the venv, default cwd, default: os.getcwd()
	 
    Returns:
        null
    """

Citation

Copyright (c) 2024 Athanasios, Delis, Stylianos, Kandylakis. Licensed under the MIT License (the "License");

@misc{torchkan,
  author = {Athanasios Delis, Stylianos Kandylakis},
  title = {colabenv},
  year = {2024},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/AthanasiosDelis/colabenv/}}
}

Contributions

Contributions are welcome. Please raise issues as necessary. All issues, as they come up, will be definitely solved to the best of my abilities. Till then if you send a merge request, describe the problem, the fix and why it works.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

colabvenv-0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colabvenv-0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file colabvenv-0.1.tar.gz.

File metadata

  • Download URL: colabvenv-0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for colabvenv-0.1.tar.gz
Algorithm Hash digest
SHA256 d0b3aefded0dca32697bfe96bf4d03a0431c2ea8b8f57f0c95997bb06d269974
MD5 2c84a4be357bb6ff9d6ca4fb2b0cb0c4
BLAKE2b-256 80764fc850bf286a4092c2ccec8ec1ec6f99578be106941c0866a8523f7aec43

See more details on using hashes here.

File details

Details for the file colabvenv-0.1-py3-none-any.whl.

File metadata

  • Download URL: colabvenv-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for colabvenv-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0bf23a9a8664d91541f7ca476e7afb4ad31ef1bc7232382a4676357b8502227
MD5 54c7d91322370fc705a3d6b871708a77
BLAKE2b-256 d0f7edb2780def3b973b3087d3db5520d67adbd90d4d1e6fc349ad3a4434077e

See more details on using hashes here.

Supported by

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