ekieffer / jupyter-prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prolog IPython magic

  • Extension to add a magick which helps defining some shell commands to be ran before the IPython kernel starts.

  • Can be useful if you wish to define some environment variables or use lmod in the context of HPC

Installation

pip install git+https://github.com/ekieffer/jupyter-prolog.git

Usage

Use it in your Jupyter lab/notebook with IPython kernel:

In [1]: %load_ext jupyter-prolog                                       

In [2]: %%prolog 
   ...: module load PyTorch/2.1.2-foss-2023a-CUDA-12.1.1

About

License:MIT License


Languages

Language:Python 100.0%