[mcstas-users] McStas Script troubles

Peter Kjær Willendrup pkwi at dtu.dk
Thu Mar 13 16:21:11 CET 2025


Hi Peter,


No configuration needed any longer - as long as you run McStasScript from within the “McStas shell”. - Jupyterlab and all bells and whistles are also included. Simply run

“jupyter lab” in the shell and you should be good!


As an example - the attached screenshot was produced under Windows by

1. Loading an instrument file in mcgui
2. Pressing the “Pylab” button (converts the loaded instr to McStasScript format and runs jupyter on it)


Best,
Peter

[Screenshot 2025-03-13 at 16.17.41.png]


On 13 Mar 2025, at 15.02, Петр Коник via mcstas-users <mcstas-users at mcstas.org> wrote:

Hi everyone!

I was trying to help a colleague of mine to use McStas script, but we immediately run into problems when trying to write path in configurator. In the documentation it is recommended to use the result of which mcrun command, but here is what we get

which: no macrun in (/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/mingw-w64/bin:/usr/bin:/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/cygdrive/c/mcstas-3.5.24/miniconda3/bin:/cygdrive/c/mcstas-3.5.24/miniconda3/condabin:/cygdrive/c/mcstas-3.5.24/bin:/cygdrive/c/mcstas-3.5.24/miniconda3:/cygdrive/c/mcstas-3.5.24/miniconda3/Scripts:/bin:/mingw-w64/bin:/cygdrive/c/Microsoft MPI/Bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-17.0.8.7-hotspot/bin:/cygdrive/c/Program Files/Eclipse Adoptium/jre-11.0.20.8-hotspot/bin:/cygdrive/c/Program Files (x86)/Eclipse Adoptium/jre-8.0.382.5-hotspot/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/WINDOWS/System32/OpenSSH:/cygdrive/c/Program Files/gs/gs10.00.0/bin:/cygdrive/c/Program Files/Fullprof:/cygdrive/c/Program Files/MATLAB/R2023b/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2023b/bin:/cygdrive/c/MATLAB/runtime/win64:/cygdrive/c/MATLAB/bin:/cygdrive/c/Program Files/MATLAB/R2017a/runtime/win64:/cygdrive/c/Program Files/MATLAB/R2017a/bin:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Users/deepak/AppData/Local/Microsoft/WindowsApps:.)

McStas itself runs good and we have no troubles there.

Best regards,
Peter Konik
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users




Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent

DTU Physics

[image001.gif]


Technical University of Denmark


[image002.gif]


Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby

Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby

Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk




Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent

DTU Physics

[image001.gif]


Technical University of Denmark


[image002.gif]


Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby

Main office at
ESS DMSC
Building 305
DK-2800 Kongens Lyngby

Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250313/8c2aa22d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2025-03-13 at 16.17.41.png
Type: image/png
Size: 242689 bytes
Desc: Screenshot 2025-03-13 at 16.17.41.png
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250313/8c2aa22d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250313/8c2aa22d/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20250313/8c2aa22d/attachment-0003.gif>


More information about the mcstas-users mailing list