Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-install python and jupyter extension in vscode? #343

Closed
sonichi opened this issue Oct 22, 2023 · 8 comments
Closed

auto-install python and jupyter extension in vscode? #343

sonichi opened this issue Oct 22, 2023 · 8 comments
Labels
code-execution execute generated code

Comments

@sonichi
Copy link
Contributor

sonichi commented Oct 22, 2023

          This is nice (and it worked for me). 

One minor annoyance is that in order to run the notebooks, I still needed to manually install python and jupyter. Perhaps a future PR could update devcontainer.json to take care of this?

Originally posted by @craigomatic in #180 (comment)

@Gourav2609
Copy link
Collaborator

Gourav2609 commented Oct 22, 2023

Hello @sonichi

"updateContentCommand": "pip install -e . pre-commit && pre-commit install && pip install jupyter",

will this work ?
Should i open a PR with this

@sonichi
Copy link
Contributor Author

sonichi commented Oct 22, 2023

This will install jupyter in the python environment but not the extension in vscode. I guessed the OP's question is about the extension, but I'm not sure.

@shruti222patel
Copy link
Collaborator

Hi Guys,

I read #367.

@Gourav2609 would like python dependencies in codespaces. I created a PR for it:#367
This will install all the dependencies listed in the pyproject.toml.
(Still need to test it.)

@Gourav2609
Copy link
Collaborator

This will install jupyter in the python environment but not the extension in vscode. I guessed the OP's question is about the extension, but I'm not sure.

Can we say it like we give them recommendation to install the following extensions....
can be done by

  • creating .vscode folder
  • creating extension.json
    - { "recommendations": ["ms-python.python", "ms-toolsai.jupyter"] }

@shruti222patel
Copy link
Collaborator

shruti222patel commented Oct 22, 2023

After exploring the repo some more, it seems that poetry isn't used to manage dependencies, setup.py is. And there Dockerfile that is being used to create the codespace already installs the dependencies.

I'm changing my PR to a clean-up PR .

@craigomatic
Copy link
Collaborator

This will install jupyter in the python environment but not the extension in vscode. I guessed the OP's question is about the extension, but I'm not sure.

Can we say it like we give them recommendation to install the following extensions.... can be done by

  • creating .vscode folder
  • creating extension.json
    - { "recommendations": ["ms-python.python", "ms-toolsai.jupyter"] }

Yes, my original workflow was:

Click the green Code button in Github -> Create a Codespace -> Open an example notebook

The user then needs to select a kernel, and is prompted to install python/jupyter. I opened PR #433 which modifies the devcontainer.json to include python/jupyter.

@Gourav2609
Copy link
Collaborator

Thanks @craigomatic

@thinkall
Copy link
Collaborator

Closing this issue due to inactivity. If you have further questions, please open a new issue or join the discussion in AutoGen Discord server: https://discord.com/invite/Yb5gwGVkE5

@thinkall thinkall added the code-execution execute generated code label Jun 18, 2024
jackgerrits pushed a commit that referenced this issue Oct 2, 2024
* Add cookbook for openai assistant agent. Reformat

* update index

* add requests

* type requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-execution execute generated code
Projects
None yet
Development

No branches or pull requests

5 participants