Giter Club home page Giter Club logo

Comments (2)

giuseppeporcelli avatar giuseppeporcelli commented on June 3, 2024

Hi,
can you please share your current configuration (code-server version, extension versions, networking, etc.)?

As you can see in this screenshot, IntelliSense was working well:
https://github.com/aws-samples/amazon-sagemaker-codeserver/blob/main/images/code-server-intellisense-sm.png

As a consequence, we need to investigate when and were this regression was introduced.

from amazon-sagemaker-codeserver.

rinkist avatar rinkist commented on June 3, 2024

Hi,
Thank you for your fast answer!

I have done further investigations in this direction and have to rephrase my original statement.

IntelliSense works for packages that are (pre-) installed in the conda environment studio but not in any other.

When I install code-server (4.15.0) on Sagemaker Studio, I have the following conda environments available:

  • base (3.9.15)
  • code_server_py39 (3.9.17) (source)
  • jumpstart-env (3.10.12)
  • studio (3.9.12)

The code_server_py39 (3.9.17) is automatically selected when starting code-server.

However, if I install new packages (i.e., pandas) in this environment I would not get any IntelliSense support for it.

It only works if I install new packages in studio (3.9.12) and select this environment at least once in code-server so (my hypothesis) code-server can make a connection to the packages installed in studio (3.9.12). After that I can switch to any other env in code-server. However, I would only get IntelliSense support for packages installed in the mentioned studio env.

I can for now live with it. However, in best case code-server would read the packages of the current selected env so that one does not have to "pollute" the studio env with packages.

Setup:

  • Installed code-server on Sagemaker Studio (not the Notebook Version)
  • Tried it in internet and no-internet domains - Results are the same

Versions:

  • Code-server version 4.15.0
  • python extension version v2023.13.12091005

settings.json:

{
   "workbench.colorTheme":"Monokai",
   "[python]":{
      "editor.defaultFormatter":"ms-python.black-formatter",
      "editor.formatOnSave":true,
      "editor.codeActionsOnSave":{
         "source.organizeImports":true
      }
   },
   "isort.args":[
      "--profile",
      "black"
   ],
   "python.languageServer": "Jedi"
}

from amazon-sagemaker-codeserver.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.