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

Provide a way to see loaded packages (R) and modules (Python) #1369

Open
jmcphers opened this issue Sep 22, 2023 · 6 comments
Open

Provide a way to see loaded packages (R) and modules (Python) #1369

jmcphers opened this issue Sep 22, 2023 · 6 comments
Labels
area: variables Issues related to Variables category.

Comments

@jmcphers
Copy link
Collaborator

via @hadley:

should the environment pane include a list of attached packages? that is a very important part of your current computing environment

https://positpbc.slack.com/archives/C05M2EZCPGR/p1695325731073809

This is a good point. For a while, the Environment pane also included a list of loaded Python modules. We now suppress these, but whatever mechanism we use to show attached R packages could also be used to show loaded Python modules.

@hadley
Copy link

hadley commented Sep 22, 2023

This gets a bit more tricky if Environment becomes Variables, but there's probably something useful that's still much lighter than the RStudio packages panes.

@kmasiello
Copy link

Would also like to see a nice representation of renv or venv states in this pane. Examples:
make it very clear when you're working within a venv or renv-project
make renv::status readily viewable
show me what index-url or options("repos") sources I'm using

@hadley
Copy link

hadley commented Sep 25, 2023

@kmasiello I think that's worth filing as a separate issue as it's a fairly big topic and different to just listing which packages are attached.

@seeM
Copy link
Contributor

seeM commented Nov 6, 2023

For reference, useful suggestions from @petetronic in the linked Slack thread above:

We have "kinds" to group environment variables, currently we have "Data", "Values", and "Functions". Adding a "Imported Modules" kind would be trivial (or whatever name we finalize for these), would that be a satisfactory light treatment?

While you can remove this grouping in the environment display, we could still special case them so they were not interleaved with variables if we needed.

Perhaps we could also show basic information about the module such as version.

@juliasilge
Copy link
Contributor

In our private beta, there is some strong interest in something like the RStudio packages pane:
https://github.com/posit-dev/positron-beta/discussions/34

@jennybc
Copy link
Member

jennybc commented Mar 27, 2024

A big takeaway for me from the positron-beta thread is that some folks use RStudio's Packages pane as a very important entry point for accessing help. I have never been a big user of the Packages pane myself and I always assumed that, for those who do use it, it was about installing or updating packages.

That being said, I wonder if these are two separate issues? I think this issue is about seeing loaded packages, whereas RStudio's Packages pane is about seeing installed packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: variables Issues related to Variables category.
Projects
None yet
Development

No branches or pull requests

7 participants