Code Monkey home page Code Monkey logo

Comments (25)

gsajko avatar gsajko commented on May 30, 2024 2

You can try this: https://medium.com/@robertbracco1/configuring-google-colab-like-a-pro-d61c253f7573

from blog-comments.

amitness avatar amitness commented on May 30, 2024 1

I'm unable to run this and getting this in my nohup.out file :-

warn vscode Unable to retrieve mac address (Error: Command failed: /sbin/ifconfig -a || /sbin/ip link
/bin/sh: 1: /sbin/ifconfig: not found
/bin/sh: 1: /sbin/ip: not found
)

any help!! please

@activenikhilg Hi. I've updated the blog post with a section on the colab-code package that Abhishek released recently. It automates the manual setup process you had to previously go through in this blog. Please look into the Approach 1 section.

from blog-comments.

abhishekkrthakur avatar abhishekkrthakur commented on May 30, 2024 1

@activenikhilg try this:

  • start code server
  • enter password
  • get blank screen
  • paste original url in the address bar. no slashes.
  • done

from blog-comments.

activenikhilg avatar activenikhilg commented on May 30, 2024 1

@activenikhilg try this:

  • start code server
  • enter password
  • get blank screen
  • paste original url in the address bar. no slashes.
  • done

Hi @abhishekkrthakur , thanks a lot, it worked.

from blog-comments.

Nikronic avatar Nikronic commented on May 30, 2024

Hi,
Thank you so much for such a great idea! My main issue was the notebook, now it has been solved.
I wonder, can we connect our local vscode to the ngrok? I have no idea about the efficiency, etc.

Thank you again.

from blog-comments.

amitness avatar amitness commented on May 30, 2024

Thank you for answering @gsajko

from blog-comments.

pudasainishushant avatar pudasainishushant commented on May 30, 2024

Does using this solve the runtime discontinuity on colab?

from blog-comments.

ucalyptus avatar ucalyptus commented on May 30, 2024

@pudasainishushant no it doesn't

from blog-comments.

ucalyptus avatar ucalyptus commented on May 30, 2024

Btw, @amitness , thank you for this tweak. I tried and this worked for me but suddenly this afternoon an ngrok error starting coming. Can you check ur tweak again?

Check out my nb here
https://colab.research.google.com/drive/1JpWNXAjucLhMb16zwilyuy1ddnLGjHOi?usp=sharing

from blog-comments.

amitness avatar amitness commented on May 30, 2024

@ucalyptus It's working again. Must have been some issue on Ngrok end.

from blog-comments.

ucalyptus avatar ucalyptus commented on May 30, 2024

Yes i checked. Thanks a lot

from blog-comments.

activenikhilg avatar activenikhilg commented on May 30, 2024

I'm unable to run this and getting this in my nohup.out file :-

warn vscode Unable to retrieve mac address (Error: Command failed: /sbin/ifconfig -a || /sbin/ip link
/bin/sh: 1: /sbin/ifconfig: not found
/bin/sh: 1: /sbin/ip: not found
)

any help!! please

from blog-comments.

activenikhilg avatar activenikhilg commented on May 30, 2024

I'm unable to run this and getting this in my nohup.out file :-
warn vscode Unable to retrieve mac address (Error: Command failed: /sbin/ifconfig -a || /sbin/ip link
/bin/sh: 1: /sbin/ifconfig: not found
/bin/sh: 1: /sbin/ip: not found
)
any help!! please

@activenikhilg Hi. I've updated the blog post with a section on the colab-code package that Abhishek released recently. It automates the manual setup process you had to previously go through in this blog. Please look into the Approach 1 section.

Hello @amitness , I tried colabcode by @abhishekkrthakur but I'm still stuck there. I can reach till the password page but the editor just don't open (same as the manual process). And also there's no log file to see if the error is same or not.

from blog-comments.

amitness avatar amitness commented on May 30, 2024

Thank you @abhishekkrthakur for the help.

@activenikhilg Could you comment your browser/OS details as well? Also, if you're using Colab free or Colab pro. Might help to know the root cause.

Found it strange that you had to do this workaround. For me and many people, colab-code is working well out of the box.

from blog-comments.

abhishekkrthakur avatar abhishekkrthakur commented on May 30, 2024

yeah. works fine for me too. this issue happens only when you have a password. does it work fine with password for you @amitness ?

from blog-comments.

activenikhilg avatar activenikhilg commented on May 30, 2024

Thank you @abhishekkrthakur for the help.

@activenikhilg Could you comment your browser/OS details as well? Also, if you're using Colab free or Colab pro. Might help to know the root cause.

Found it strange that you had to do this workaround. For me and many people, colab-code is working well out of the box.

@amitness its now working without the workaround and I have tested it with and without password.
I'm using Colab free on Windows 10 | chrome browser.

from blog-comments.

amitness avatar amitness commented on May 30, 2024

@abhishekkrthakur When I tried yesterday, it was working out of the box. Now that @activenikhilg mentioned it, I tried it again and faced the same problem. Had to refresh after the page clicking "login" to get into the editor.

The console logs show that the page failed to fetch some login.js file from the Ngrok tunnel.

from blog-comments.

hiraksarkar avatar hiraksarkar commented on May 30, 2024

Getting the following error while opening the public url

from blog-comments.

amitness avatar amitness commented on May 30, 2024

@hiraksarkar Can you try again? I just tried it now and it worked.
Screenshot from 2021-03-14 13-58-08

Sometimes ngrok is down and you might have faced the error due to that.

from blog-comments.

quantitative-technologies avatar quantitative-technologies commented on May 30, 2024

Unfortunately, when I try to debug my code the VS code just hangs.

from blog-comments.

Adrg01 avatar Adrg01 commented on May 30, 2024

Hi
I'm getting an error while trying to run the following code. Please help me figure out what is wrong. Thank You for your time

from colabcode import ColabCode
ColabCode()

error:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    ColabCode()
  File "C:\Users\as116\AppData\Local\Programs\Python\Python38\lib\site-packages\colabcode\code.py", line 42, in __init__
    self._install_code()
  File "C:\Users\as116\AppData\Local\Programs\Python\Python38\lib\site-packages\colabcode\code.py", line 49, in _install_code
    subprocess.run(["wget", "https://code-server.dev/install.sh"], stdout=subprocess.PIPE)
  File "C:\Users\as116\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\as116\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\as116\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

from blog-comments.

amitness avatar amitness commented on May 30, 2024

@Adrg01 It looks like you're trying to run it locally and that too on Windows. It won't work since the tool is created to leverage Linux utilities like wget. Please run it on colab and it should work.

from blog-comments.

ayu1729 avatar ayu1729 commented on May 30, 2024

Hey I can't open the code-server page. When I clicked the link in colab, there is a welcome to ngrok page asking me to install ngrok. I installed ngrok and start the agent with the correct port number. However, everytime I click the link, it's still the welcome to ngrok page. @amitness

from blog-comments.

Wallfacer005CN avatar Wallfacer005CN commented on May 30, 2024

When I tried to running the notebook you provided on Colab, I got the warning:

The code you are executing may not be allowed, which may restrict your use of Colab later. Note the forbidden actions listed in our FAQ.

Is this mean it's not safe to use this solution on Colab?

from blog-comments.

amitness avatar amitness commented on May 30, 2024

@Wallfacer005CN Yes, google banned the package because of terms of service violation. So, it's not safe since they may ban your colab account.

from blog-comments.

Related Issues (20)

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.