Skip to content

APIs required by Tensorboard ext (as well as Jupyter ext) #22174

Open
@DonJayamanne

Description

@DonJayamanne

There are a few requirements in Tensorboard (& Jupyter ext), and I will not create separate issues for each of the APIs as the solution/API exposed could end up being different.

Requirements

  • Ability to install packages
  • Ability to detect whether packages are installed
  • Ability to get version of packages
  • Ability to run Python code (spawning kernels, etc)

Proposed solutions

  • Provide an API to manage packages
  • Provide an API to return
    • Activated env vars of Python env
    • Paths to the tools such as conda, poetry, etc
  • Short term
    • Leave existing tensorboard package installation code in Python extension
    • Expose some command or the like that can be used by Tensorboard (to detect/install tensorboard package)
    • This temporary solution can be in place until we get an API sorted out,

Note:

  • Detecting whether a package is installed and getting their versions can be done with just a single api getActivatedEnvVars
  • Installation of packages is what is complex

Related issues

@karrtikr @karthiknadig /cc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions