Comments (5)
You will need to tell Surfice/MRIcroGL the location of your Python installation. It will attempt to find this when it starts, but this may not work for distributions I have not used like Gentoo. If nothing else, the Pascal scripting is always built into Surfice/MRIcroGL. You may need to edit the file ~/.mricrogl/MRIcroGL.ini and set "PyLib" to point to the location of your Python. Once this is done, you will be able to run Python scripts from the MRIcroGL/Surfice scripting window. All the functions are in-built and provide natively compiled performance. The next generation MRIcroGL 1.2 will further extend these features.
I suggest you follow these instructions.
from mricrogl10_old.
Ah, I see.
The issue was more the uncommon usage method. I would echo @pjkohler's surprise that the Python functionality can only be used from within MRIcroGL or as an argument to the command. I had expected it to be importable in the Python interpreter (since that is how Python bindings, including for non-Python libraries, tend to work). My bad. Is there, however, any chance that MRIcroGL's excellent rendering functionality could be used directly from the interpreter in the foreseeable future?
from mricrogl10_old.
I second the request above from @TheChymera.
from mricrogl10_old.
I think this usage is pretty typical of natively-compiled OpenGL tools, e.g. tools like Blender have similar functionality. For your use, perhaps you should consider FSLeyes and Jupyter Notebook. FSLeyes is a terrific tool that is primarily written in Python, with both the strengths and limitations that implies. Both tools are open source and you are free to develop and extend as you wish. I have limited resources and a lot of commitments. Personally, I think this is a case of horses for courses: I use FSLeyes when it is the right tool for my aims. Its hard to justify engineering effort when an excellent, actively developed open source tool with the desired features already exists.
from mricrogl10_old.
Closing this issue. If anyone wants to actively develop richer support, feel free to create a fork, submit pull requests and re-open this issue.
from mricrogl10_old.
Related Issues (20)
- Feature request: Reduce edge effects with OVERLAYLOADSMOOTH HOT 5
- Bug: ColorbarSize ignored by Mosaic function HOT 2
- "Image dimensions do not make sense"? HOT 10
- Update position reporting when scrolling with keys
- Updated Release on NITRC? HOT 2
- ctrl (or cmd) Z does not undo when drawing HOT 1
- disorienting UI behavior HOT 1
- view -> extract objects close window behavior HOT 1
- view -> extract brain not cancelling on "x" click HOT 1
- Mosaic text shows up inside mosaic brain HOT 1
- Shader compiler error HOT 6
- Changing default output format HOT 8
- Color when saving as bitmap becomes blue HOT 1
- Detect first positional argument as an image to open HOT 5
- Install mricrogl without Python support HOT 2
- Need of a cyclic corolmap HOT 5
- How to convert the coronal scans into a nifti image? HOT 5
- Incorporating cividis colorscheme HOT 1
- PyInt_fromLong and PyString_fromString HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mricrogl10_old.