Skip to main content

Run sumit403.p4() in an isolated conda environment without crashing your Jupyter kernel

Project description

Tenv

Run sumit403.p4() in a completely isolated conda environment — your Jupyter kernel never crashes.

The Problem

sumit403.p4() injects PyTorch code that conflicts with the standard Anaconda environment, causing the kernel to die every time you run it.

The Solution

Tenv runs p4() in a separate subprocess inside a dedicated p4_env conda environment. Your main kernel is untouched, figures are captured and displayed inline, and you never need to restart.

Installation

pip install Tenv

Usage

Step 1 — One-time setup

Run this once to create the isolated environment with PyTorch + sumit403:

from tenv import setup_env
setup_env()

Step 2 — Run p4 (every time, no crashes)

from tenv import run_p4
run_p4()

That's it. Output streams back to your notebook, matplotlib figures display inline, and your kernel stays alive.

Requirements

  • Anaconda or Miniconda (conda must be on PATH)
  • Python 3.8+

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

sumitenv-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

sumitenv-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file sumitenv-0.1.0.tar.gz.

File metadata

  • Download URL: sumitenv-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sumitenv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1d6832a28b9ccabbf1383368f862ac543c266f8299c02482a1ecce7e07d541f
MD5 de65f47e2fab3a22ccb899d6fdd084e0
BLAKE2b-256 386314058672d8885312b68210661feecae4a2781c339c99a85128004574fce4

See more details on using hashes here.

File details

Details for the file sumitenv-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sumitenv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for sumitenv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 743e5431aeb9a6c6f7de8206d95cb902231b9972fb96720835717f6610357fbc
MD5 69d716020cde43360d044132581e1803
BLAKE2b-256 fac11337e3b68ed264092f90a43d9a01134208f417eca404e39ca9ecf078b09e

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