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
Unanswered
Whelp. Here'S Our Hackathon Demo Submission For A Clearml Vs Code Extension


How it works / what we finished:

  • We used the SaaS ClearML, started an EC2 instance, and manually installed and ran the clearml-agent daemon on it
  • We ran clearml-init on our laptops to generate the clearml.conf file.
  • The extension is in TypeScript, so...
  • We started trying to write code with the Python SDK to list sessions, but realized calling that from the extension would be hard, so we opted to have the TypeScript code make calls to the ClearML API server directly, e.g. POST /tasks.get_all_ex .
  • To get the credentials, we read the ~/clearml.conf file. I tried hard, but couldn't get a TypeScript library to work to parse the HOCON config file format... so I eventually resorted to using (likely brittle) regex to grab the ClearML endpoint and API keys to make the requests.
  • The extension prompts the user and auto-install the clearml and clearml-session SDK in the currently active Python virtualenv.
  • You can run the clearml-session --attach command from the extension.
    Enhancements would be:
  • Have VS Code watch the logs of clearml-session --attach , and then open the VS Code window to remote into that automatically. - Also discover the SSH password and auto-enter that so the user doesn't have to look it up.- Publishing it to the VS Code extension marketplace
  • Adding tests, cleaning up the code
  • Support full CRUD operations for sessions- Allowing the user to specify presets for creating sessions with favorite libraries, docker images, and other settings
  • Adding a better way to view more information about running sessions, e.g. queue, resources, user who created it, etc.
  
  
Posted one year ago
127 Views
0 Answers
one year ago
one year ago