question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Move installation of all DS packages into Jupyter Extension

See original GitHub issue
  • We’re already install ipykernel for windows PCs when users have shells other than Powershell/Command Prompt
  • We’ve extended this to now install ipykernel ourselves always when on Windows PC (global & virtual environments)

Suggestion

  • Install ipykernel for conda enviroments ourselves
    • We can actiavte the env and run conda install ipykernel ourselves (we have the location for conda, etc)
  • Instlal ipyernel for other environmetns (pipenv, poetry, etc) ourselves
    • We can activate the env using Python extension, and run the pip installer

This should fix a number of ipykernel installation issues as well.

Benefits

  • More users will be unblocked
  • We have a better idea/understanding of when things go wrong
    • Today when things go wrong, we have absolutely no idea in Python ext, because we run the command in the terminal and we don’t know what goes on in the terminal
    • (also there’s no need to run these in a terminal)
  • Simpler
  • Lower reliance on Python ext (we can just rely on getting the type of env)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Dec 4, 2021

But does the python extension want to own this type of thing (package installing)

I thought they don’t want to own this. & us waiting will not get us anywhere, we’ve been waiting for this to happey while users break and stop using. I think we can go ahead with our npm, and when things get traction in python extnsion, we can consider merging.

Again, the only duplication is literally a few lines of code. & the Python extnesion doesn’t really have the smarts today, it just dumpts the commands into a terminal (& that will go away as they don’t want to do any of this in the future), our code will be slighly different.

0reactions
DonJayamannecommented, Dec 4, 2021

Again, I don’t think there’s any code duplication, but totally fine with the npm module. Should be super easy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install External Libraries and Kernels in Notebook Instances
The on-start script installs any custom environments that you create as Jupyter kernels, so that they appear in the dropdown list in the...
Read more >
Installing jupyter_contrib_nbextensions
To install the jupyter_contrib_nbextensions notebook extensions, three steps are required. First, the Python pip package needs to be installed.
Read more >
10 Essential Jupyter Notebook Extensions for Data Scientists
This Python package has numerous nb extensions that you can configure that help to make your Data Science development process easier. It is ......
Read more >
Jupyter Guide - GitLab
Installation Instructions · Clone the repo to your local machine git clone git@gitlab.com:gitlab-data/data-science.git · Navigate to the directory: cd data- ...
Read more >
Get started | DataSpell Documentation - JetBrains
Install packages  · In the Python interpreter selector, choose the target environment and select Interpreter Settings. Managing packages · Click ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found