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
I Have A Notebook Which Is Uncommited. It Is Being Run On A Remote Machine With Clearml-Agent Through Clearml-Session. Everything With Newest Versions, Server Is Community-Hosted. Under Uncommitted Changes I See

I have a notebook which is uncommited. It is being run on a remote machine with clearml-agent through clearml-session. Everything with newest versions, server is community-hosted. Under uncommitted changes I see
"""Entry point for launching an IPython kernel. This is separate from the ipykernel package so we can avoid doing imports until after removing the cwd from sys.path. """ import sys if __name__ == '__main__': # Remove the CWD from sys.path while we load stuff. # This is added back by InteractiveShellApp.init_path() if sys.path[0] == '': del sys.path[0] from ipykernel import kernelapp as app app.launch_new_instance()instead of my actual notebook code. Is this a bug or a feature?

  
  
Posted 3 years ago
Votes Newest

Answers 15


yes, but note that I’m not talking about VS Code instance set up be clearml-session, but about a local one. I’ll do another test to determine whether VS Code from clearml-session suffers from the same problem

  
  
Posted 3 years ago

(when I say fancy, you are free to substitute whatever adjective you wish instead 🙂

  
  
Posted 3 years ago

“VSCode running locally connected to the remote machine over the SSH” - exactly

  
  
Posted 3 years ago

okay, let me check it, but I suspect the issue is running over SSH, to overcome these issues with pycharm we have specific plugin to pass the git info to the remote machine. Let me check what we can do here.
FiercePenguin76 BTW, you can do the following to add / update packages on the remote session
clearml-session --packages "newpackge>x.y" "jupyterlab>6"

  
  
Posted 3 years ago

Also, installed packages are also incorrect (not including ones that I install fmor within the notebook using !pip install package_name_here )

` # Python 3.8.5 (default, Jan 27 2021, 15:41:15) [GCC 9.3.0]
azure_storage_blob == 12.8.0
boto3 == 1.17.30
clearml == 0.17.5
google_cloud_storage == 1.36.2
ipykernel == 5.5.0

Detailed import analysis

**************************

IMPORT PACKAGE azure_storage_blob

clearml.storage: 0

IMPORT PACKAGE boto3

clearml.storage: 0

IMPORT PACKAGE clearml

clearml: 0

IMPORT PACKAGE google_cloud_storage

clearml.storage: 0

IMPORT PACKAGE ipykernel

ipykernel_launcher.py: 15 `

  
  
Posted 3 years ago

docker: nvidia/cuda:11.2.1-cudnn8-runtime-ubuntu20.04
jupyterlab 3.0.11
clearml lib 0.17.5
no warnings
2021-03-24 17:55:44,672 - clearml.Task - INFO - No repository found, storing script code instead

  
  
Posted 3 years ago

aaahhh.. I will wager good money Sir that you are then using ipython in vscode which is probably trying to do something "fancy" with the interpreter

  
  
Posted 3 years ago

Hi FiercePenguin76
It seems it fails detecting the notebook server and thinks this is a "script running".
What is exactly your setup?
docker image ?
jupyter-lab version ?
clearml version?
Also are you getting any warning when calling Task.init ?

  
  
Posted 3 years ago

FiercePenguin76
So running the Task.init from the jupyter-lab works, but running the Task.init from the VSCode notebook does not work?

  
  
Posted 3 years ago

Hmm so VSCode running locally connected to the remote machine over the SSH?
(I'm trying to figure out how to replicate the setup for testing)

  
  
Posted 3 years ago

so I assume it’s somehow related to remote connection form VS Code

  
  
Posted 3 years ago

also, I tried running the notebook directly in remote jupyter - I see correct uncommitted changes

  
  
Posted 3 years ago

yeah, I missed the fact that I’m running it not by opening remote jupyter in browser, but by connecting to remote jupyter with local VS Code

  
  
Posted 3 years ago

Howdy Jevgeni, that's .. strange. I am using google colab (free edition 🙂 and doing exactly the same as you, but I don't see any uncommited changes.. hrrm.. can you try this on colab maybe ? I am wondering if it's your jupyter notebook's version of python or some other notebook extension maybe

  
  
Posted 3 years ago
1K Views
15 Answers
3 years ago
one year ago
Tags