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
What Sort Of Integration Is Possible With Clearml And Sagemaker? On The Page

What sort of integration is possible with ClearML and SageMaker? On the page describing ClearML Remote it says:

Create a remote development environment (e.g. AWS SageMaker, GCP CoLab, etc.) on any on-prem machine or any cloud.

But the only mention of SageMaker I see in the docs is the release notes for 0.13 saying "Add support for SageMaker".

I have SageMaker Studio up and running with access to my ClearML server and it's successfully able to log plots and scalars from experiments, but in terms of code it just logs the code used to launch the kernel:

"""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()

Is it possible to capture more than that while using SageMaker?

  
  
Posted 2 years ago
Votes Newest

Answers 77


I will once I figure out the fix!

  
  
Posted 2 years ago

local Jupyter Lab:
image
image
image

  
  
Posted 2 years ago

it does return kernels, just not sessions

  
  
Posted 2 years ago

sounds good, thanks!

  
  
Posted 2 years ago

image

  
  
Posted 2 years ago

What do you have in "server_info['url']" ?

  
  
Posted 2 years ago

I think it just ends up in /home/sagemaker-user/{notebook}.ipynb every time

  
  
Posted 2 years ago

if there are any tests/debugging you'd like me to try, just let me know

  
  
Posted 2 years ago

This is strange, let me see if we can get around it, because I'm sure it worked 🙂

  
  
Posted 2 years ago

still empty
image

  
  
Posted 2 years ago

SageMaker Studio:
image
image
image

  
  
Posted 2 years ago

and this

server_info['url'] = f"http://{server_info['hostname']}:{server_info['port']}/{server_info['base_url']}/"
  
  
Posted 2 years ago

the problem is here: None

  
  
Posted 2 years ago

so my reading of the jupyter-kernel-gateway docs is that each session is containerized, so each notebook "session" is totally isolated

  
  
Posted 2 years ago

if I change it to 0.0.0.0 it works

  
  
Posted 2 years ago

but the call to jupyter_server.serverapp.list_running_servers() does return the server

  
  
Posted 2 years ago

if I add the base_url it's not found

  
  
Posted 2 years ago
132K Views
77 Answers
2 years ago
2 years ago
Tags
Similar posts