Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi All, I'M Trying To Create A Task In A Jupyter Notebook, And I Always Get This Warning:

Hi all, I'm trying to create a task in a Jupyter notebook, and I always get this warning: trains.Repository Detection - WARNING - Can't get branch information for git repo in /home/{USER}/.local/lib/python3.8/site-packages . That warning repeats for "branch information", "commit information", and a few others.

My guess is that there's an issue with the git repo detector. However, my notebook is in a git repo, and I'm not sure why it's not being resolved. I checked with os.getcwd() and it returns the correct notebook directory. I also checked sys.path , and while /home/{USER}/.local/lib/python3.8/site-packges is in the path, the first directory is the same as os.getcwd() .

Any thoughts? I would really like to record the commit ID and commit diff when running experiments. Thanks in advance!

  
  
Posted 4 years ago
Votes Newest

Answers 6


The notebook path goes through a symlink a few levels up the file system (before hitting the repo root, though)

Hmm sounds interesting, how can I reproduce it?

The notebook kernel is also not the default kernel,

What do you mean?

  
  
Posted 4 years ago

There could be a few things. The notebook path goes through a symlink a few levels up the file system (before hitting the repo root, though). I'm also in an anaconda env with a mix of conda and pip packages. The notebook kernel is also not the default kernel, but that's a common use case.

If it helps to know, I'm running on Linux with jupyterlab, and the trains-server is hosted on the same machine (using the defaults from the docker-compose.yml ). I'm on trains version 0.16.3 .

  
  
Posted 4 years ago

SmugDog62 so on plain vanilla Jupyter/lab everything seems to work.
What do you think is different in your setup ?

  
  
Posted 4 years ago

I checked the execution tab, but no repo information is listed. The "Source Code" table looks like:
REPOSITORY origin COMMIT ID SCRIPT PATH ipykernel_launcher.py WORKING DIRECTORY .
The "Uncommitted Changes" info is just the " Entry point for launching an IPython kernel." script, which I believe is boilerplate from trains. There's no mention of my specific notebook code.

  
  
Posted 4 years ago

I can try to isolate a few of those variables. Are there any line numbers within trains that may point to the problem? I can run the debugger and inspect things there.

  
  
Posted 4 years ago

Hi SmugDog62

My guess is that there's an issue with the git repo detector.

Seems like you are correct
Can are you getting on the execution tab?
Is the repo correct?
Do you see the notebook in the uncommited changes ?

  
  
Posted 4 years ago
1K Views
6 Answers
4 years ago
one year ago
Tags