A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1350/ below:

run library module as a script' option · Issue #1350 · ipython/ipython · GitHub

It'd be nice to add the -m flag to IPython, for use with interactive mode. For example ipython -i -m MODULENAME.

The behavior can already be easily mimicked using the runpy module as in:

$ ipython -i -c  "
from runpy import run_module;
locals().update(run_module('MODULENAME', run_name='__main__', alter_sys=True))
"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4