Ticket #7007 (assigned)

Opened 7 years ago

Last modified 5 years ago

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

comment:1 Changed 7 years ago by Martyn Gigg

  • Milestone changed from Release 2.6 to Release 2.7

Batch move to 2.7

comment:2 Changed 7 years ago by Nick Draper

  • Milestone changed from Release 2.7 to Backlog

comment:3 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:4 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7853

Note: See TracTickets for help on using tickets.