Issue on page /Userdocs/SingleNeuronExample.html
moscraciunxxx opened this issue · 17 comments
Hello,
I cannot see the "rocket " icon on the right top corner of the page in order to run the code on Jupyter.
Could you please suggest a solution to this ?
New Document Microsoft Word.docx
Hi @moscraciunxxx , thanks for the issue report.
Can you confirm what the URL of the page is please?
The static version that cannot be run with lots of information is this:
https://docs.neuroml.org/Userdocs/SingleNeuronExample.html
and the interactive notebook that you can run is the next page:
https://docs.neuroml.org/Userdocs/NML2_examples/SingleNeuron.html
PS: you can upload images to GitHub issues, no need to put them in a doc file first
No worries, I assume that means the issue is solved. Please re-open or open new issues if required. Closing this one now.
I don't have a Matlab installation, so this will be hard to verify. What errors are you seeing?
I also see that the instructions are for Matlab 2016, so it's possible that something has changed in recent releases. I'll look around to see if there's someone who can test the steps for us.
If at all possible, I'd suggest using the Python tools. Those are what we are focussed on, and they contain lots of extra utilities etc. over what would be available in the Matlab.
Could you confirm that you are able to access the neuroml libraries on the command line in your anaconda environment? if that works, then you probably just need to run spyder in this anaconda environment. By default, it'll run with the system paths etc., so you need to activate the anaconda environment and then run spyder from the environment for spyder to pick up the new paths.
What operating system are you on, by the way?
A web search brought me to this, which looks correct:
It tells you how to set the PYTHONPATH in Spyder.
Please feel free to drop by on the Gitter chat channel (you login using GitHub there). I'll be on it from 0900 - 1700 London time on all weekdays.
Great, please do let me know if you run into any issues. Cheers,
Ah, hrm, that sounds something generally conda related I'm afraid.
In general, I run bits using python virtual environments, which should be very similar to conda environments:
python3 -m venv ./venv
source .venv/bin/activate
pip install <packages>
# work
and that tends to work. I guess I don't use spyder and so on so I'm not sure how one gets them to use virtual environments. This is Windows too, which is a little different to how we work on Linux/Mac.
I guess it'll be best to start with the terminal (without spyder) to see if things work in a normal python interpreter. Once you have that set up, spyder needs to be configured to use the environment.
If the modules from the environment are accessible, you just need to install the neuroml bits into this environment. pip install pyneuroml
when the environment is activated should pretty much do it.
awesome, that's good to hear.