You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / core / magics / osm / OSMagics / set_env

function

IPython.core.magics.osm:OSMagics.set_env

source: /IPython/core/magics/osm.py :464

Signature

def   set_env ( self parameter_s )

Summary

Set environment variables. Assumptions are that either "val" is a name in the user namespace, or val is something that evaluates to a string.

Extended Summary

Usage:\

:%set_env var val: set value for var :%set_env var=val: set value for var :%set_env var=$val: set value for var, using python expansion if possible

Aliases

  • IPython.core.magics.OSMagics.set_env