Ticket #7007 (assigned)
Very different environments for Python algorithms, Scripting Console vs. loaded on start up
Reported by: | Nick Draper | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
From James Lord:
I can write a Python algorithm in the Scripting console and it only needs "from mantid.api import *" as in the online help. If I then try to have that algorithm auto-load on Mantid startup (e.g. View - Preferences - Mantid - Directories - Python Algorithms) I have to make it import several extra libraries such as mantid.kernel, mantid.simpleapi and numpy. Debugging this was not trivial as it means much trial and error, restarting Mantid each time!
Change History
Note: See
TracTickets for help on using
tickets.
Batch move to 2.7