Skip to content
Discussion options

You must be logged in to vote

Hi @aswinnarayanan,

Many thanks for that. I ran the command you suggested and got the message No such file or directory. I then tried to access my home directory !ls /Users/juand/ but I got the message cannot access '/Users/juand: No such file or directory

I then did a search for "get neurodeskapp to see my home directory." I found that within Neurodesk I need to look for data in /home/jovyan/data

So, I tried,

session = xnat.connect('https://central.xnat.org', netrc_file='/home/jovyan/data/.netrc')

And that did the trick. I was able to connect.

To sum up, the solution is

!pip install xnat
import xnat
session = xnat.connect('https://central.xnat.org', netrc_file='/home/jovyan/data/.netrc')

Replies: 0 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@aswinnarayanan
Comment options

@juan-d
Comment options

@aswinnarayanan
Comment options

@juan-d
Comment options

Answer selected by juan-d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants