Changeset 34d7b35 in sasview


Ignore:
Timestamp:
Sep 22, 2017 6:56:34 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
dc8d1c2
Parents:
574adc7
Message:

use 'run.py -i' to start ipython with the sasview environment set up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • run.py

    rf94a935 r34d7b35  
    160160    logger.debug("Starting SASVIEW in debug mode.") 
    161161    prepare() 
    162     from sas.sasview.sasview import run 
    163     run() 
     162    if len(sys.argv) == 2 and sys.argv[1] == "-i": 
     163        sys.argv = ["ipython", "--pylab"] 
     164        from IPython import start_ipython 
     165        start_ipython() 
     166    else: 
     167        from sas.sasview.sasview import run 
     168        run() 
    164169    logger.debug("Ending SASVIEW in debug mode.") 
Note: See TracChangeset for help on using the changeset viewer.