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.

Opening a notebook in a codespace

See original GitHub issue
  1. open a ipynb file in a codespace -> image

Issues:

  1. ~python extension activation shows the welcome page stealing the focus from the notebook that I opened~ //cc @brettcannon
  2. ~I get immediately asked for a survey~
  3. the kernel port gets forwarded (this is a missing API adoption, @alexr00 has the details)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, May 11, 2021

@alexr00 sorry i missed ur comment. It was very easy to use (didn’t have to look at any existing code to figure it out).

at we can add to the selector properties so that your provider will get called for fewer ports?

Good question, let me look into this. The problem is these ports are opened by other packages & executables (& in 99% of the case we don’t even know the CLI ahead of time)

1reaction
alexr00commented, Mar 25, 2021

@DonJayamanne Yes, for ports that the extension knows about and are internal to the working of the extension, use PortAutoForwardAction.ignore. For ports that the extension doesn’t know about, simple exclude them from your returned array of attributes. If there are any ports that the extension knows about but are external to the working of the extension, i.e. user facing, you can return PortAutoForwardAction.notify if you want to make sure that the user is notified, or you can simply leave them out of your returned array and let the user’s settings handle whether they get notified.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started with GitHub Codespaces for machine learning
You can open your codespace in JupyterLab from the "Your codespaces" page at github.com/codespaces, or by using GitHub CLI. For more information, see...
Read more >
Using Codespaces with JupyterLab (Public Beta)
Using GitHub Codespaces with JupyterLab combines the delightful notebook editing, data exploration, and narrative building experiences of ...
Read more >
Jupyter Notebooks in GitHub Codespaces - DEV Community ‍ ‍
Very easy to set up and use. Really like the 'show (notebook) variables' option in "locally" connected Jupyter notebook. There is also the ......
Read more >
How to Execute Jupyter Notebooks from GitHub
Currently, you may sign up for beta access to Codespaces, which will include some free compute to run your notebooks on. Codespaces Open...
Read more >
First look at GitHub Codespaces - NillsF blog
I have a notebook I use for my own personal covid analysis. I copy-pasted that notebook into the codespace, restarted the codespace (i.e....
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