How To Setup & Run Jupyter Notebooks in VS Code w/ Virtual Environment & Kernels (Remote & Local)

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 56

  • @edwinantonius63
    @edwinantonius63 7 місяців тому +1

    Great vid and like the speed you are maintaining in this walkthrough. It helped me solve the issue with connecting Jupy NB to VSCode and I didn't need to watch the whole vid for that!. Thnx

  • @lakshanya0
    @lakshanya0 2 місяці тому

    Thank youuuu so much😭😭😭 I was having a lot of trouble with the ipykernel

  • @tysonmcdonald9768
    @tysonmcdonald9768 Рік тому +3

    Great walkthrough, I appreciate the step-by-step guide. Keep up the good work!

    • @devinschumacher
      @devinschumacher  Рік тому

      TY. if you have any special requests, LMK in the comments ill whip it up!

  • @daffertube
    @daffertube Рік тому +1

    Thanks! Move videos like this. You have a nice sense of humor

  • @ashok_learn
    @ashok_learn Рік тому +3

    Thanks mate! I will tell this to my mom.

  • @kabiruabbati4640
    @kabiruabbati4640 22 години тому

    Haha... you really funny Devin. Big thanks by the way

  • @RavenGibson
    @RavenGibson Рік тому +1

    This was helpful~ How do I see the cool breadcrumb banner like you have?

    • @devinschumacher
      @devinschumacher  Рік тому

      breadcrumb banner...?? are you talking about the command prompt file path thing?

    • @RavenGibson
      @RavenGibson Рік тому +1

      @@devinschumacher I'm talking about when you're in the terminal like at 1:05 and it shows the path like development/videos/vsodevideo

    • @devinschumacher
      @devinschumacher  Рік тому

      ah. that is something called Powerlevel10k - github.com/romkatv/powerlevel10k

  • @cbass4426
    @cbass4426 Рік тому +2

    Thank you so much!! This was very helpful!

  • @emptytank604
    @emptytank604 Рік тому +1

    Thanks! This was very helpful! Only issue I had when following your instructions was I had to use conda instead of pip to install ipykernel. Otherwise, the terminal kept telling me "No module found" when I tried to create a new kernel even though ipykernel was on my pip list.

    • @devinschumacher
      @devinschumacher  Рік тому +2

      Ah yes I did not address that. If you use conda as your package manager - you would want to call that little guy to do the installs instead of mr. pip 🕵️‍♀️
      pip probably installed ipykernel in a different directory (aka “PATH”) so your python interpreter wasn’t finding it when looking in its usual place

  • @nikhildaram3354
    @nikhildaram3354 5 місяців тому +1

    What is your vs code theme

    • @devinschumacher
      @devinschumacher  5 місяців тому

      i dont remember i change it all the time.... maybe Tomorrow Night Blue ??

    • @nikhildaram3354
      @nikhildaram3354 5 місяців тому +1

      @@devinschumacher thanks for your kind response

  • @amartyagunjan
    @amartyagunjan 7 місяців тому

    Thank you!

  • @gibapro
    @gibapro Рік тому +1

    Which terminal is that? I like it!

    • @devinschumacher
      @devinschumacher  Рік тому

      zsh using Powershell 10k - github.com/romkatv/powerlevel10k

  • @mendozosa
    @mendozosa Рік тому

    I have one question, you need to do all these steps for every new environment that you create for using jupyter notebooks on VScode??

    • @devinschumacher
      @devinschumacher  Рік тому

      i dont think so. you should be able to treat it like you treat a 'venv'. meaning that you can setup a jupyter kernel, and a jupyter venv, and whenever you make a new PROJECT you can use those. they dont have to exist IN the project folder.
      is that what you were asking?

  • @rafaelcoronel
    @rafaelcoronel Рік тому

    I did all right w/ Devin's step-by-step. My VSC keeps shutting down my brand new created kernel, over and over...it's been three days I just can't move forward. It works in Jupyter page but it doesn't in VSC. Please help me!

    • @devinschumacher
      @devinschumacher  Рік тому

      jump in discord and ill help you troubleshoot it! hard to say just with that description though if i cant re-create it -- serp.ly/discord

  • @proterotype
    @proterotype Рік тому

    New sub. this was a great video> I think you're going to get big

  • @amodsawant6543
    @amodsawant6543 10 місяців тому

    I am unable to select the kernel i created within virtual environment because I have an arm64 cpu, is there a different way to create a kernel in that case ?

    • @devinschumacher
      @devinschumacher  10 місяців тому

      is that the Mac chip? i have it too. what are you using? pip in VS code? what version of python?
      python -m venv .venv && source .venv/bin/activate && which python
      ^ run that in a new proj and LMK

  • @thabomaleke874
    @thabomaleke874 5 місяців тому +1

    Step 3 doesn't work for me. It gives me a resolution error

    • @devinschumacher
      @devinschumacher  5 місяців тому

      try again. post more error info.
      you can literally do this even faster like this:
      1. open brand new project
      2. create virtual environment: python3 -m venv .venv && source .venv/bin/activate
      3. create a jupyter notebook (cmd+N > save > name it whatever.ipynb)
      4. make a code block in the notebook and add something like: !pip install requests
      5. click the PLAY button, and vs code should prompt you to select your environment, and then prompt you to install a new kernel.
      6. done

  • @andrewpatruno5842
    @andrewpatruno5842 Рік тому +1

    Super helpful!

  • @user-qj6hl5xb8q
    @user-qj6hl5xb8q 9 місяців тому

    you fixed an issue in my vscode where my jupyter notebook was not detecting a kernel!

    • @devinschumacher
      @devinschumacher  9 місяців тому +1

      that's the same issue that made it go figure this all out in the first place. well done!

  • @jaiojha7554
    @jaiojha7554 Рік тому

    "you lazy son of ..."- was so damn funny:)
    6:28

  • @rominafassihi8938
    @rominafassihi8938 6 місяців тому

    I keep getting the error " No module named ipykernel_launcher." I tired uninstalling and reinstalling ipykernel but it doesn't work.

    • @devinschumacher
      @devinschumacher  6 місяців тому

      drop a loom video link showing me what youre seeing and ill try to help you out

  • @sapandeepsinghsandhu480
    @sapandeepsinghsandhu480 Рік тому +1

    how you open vs code through terminal I can't do it

    • @devinschumacher
      @devinschumacher  Рік тому

      the command is 'code'. so you can 'cd' into your project directory and then type $ code .
      the '.' indicates "current directory" so it will open that directory you are in, in vscode.
      alternatively you can pass it a directory path, like $ code ~/projects/hamburger-automator
      and it will open your hamburger-automator program in VS Code.

    • @sapandeepsinghsandhu480
      @sapandeepsinghsandhu480 Рік тому

      @@devinschumacher thanks sir
      I have another issue can you help me out, when I run my GRU model to train 100 epochs but after executing 10 or 11 epochs it automatically reconnecting to kernel is it error or some code roblem

  • @hws9999
    @hws9999 Рік тому

    The problem is .. vscode doesn't show the file system of remote server in remote kernel mode.

    • @devinschumacher
      @devinschumacher  Рік тому

      why is that a problem? slash.. what are you talking about?

  • @gudguy1a
    @gudguy1a 9 місяців тому

    In the future, "please" minimize your face screen to a smaller size so we can "see more" of and focus 'better' on actual, larger content.
    That helps us out a lot more...

    • @devinschumacher
      @devinschumacher  9 місяців тому

      what part did you miss?

    • @gudguy1a
      @gudguy1a 9 місяців тому

      @@devinschumacher
      Sorry but I did not miss any. I just stopped.
      Whenever I see a video where the host/narrator seems to have the need to do constant appearance (face time), taking up a large chunk of screen space - it just becomes very distracting and I move on to another less distracting video.
      I'm of the folks that prefer seeing the content versus the narrator.
      That was it. Simply a preference that many have but just do not voice.
      Happy trails to you.

    • @devinschumacher
      @devinschumacher  8 місяців тому

      interesting. well i make sure that the talking head doesn't block info -- so you missed out!
      alot of people prefer it because the distraction lets their attention span focus for longer

  • @LauraLouise-uz7qp
    @LauraLouise-uz7qp 6 місяців тому

    doesn't work with python 3.12, will rely with 3.11 and come back

    • @LauraLouise-uz7qp
      @LauraLouise-uz7qp 6 місяців тому

      even after installing the app extension on vscode, I needed to explicitly install on the activated env
      >>>pip install jupyter
      then run
      >>>jupyter notebook
      and everything else worked

    • @devinschumacher
      @devinschumacher  6 місяців тому

      I think they made it even easier to deal with with the latest updates to VSCODE. @@LauraLouise-uz7qp
      and if it ever gets stuck i just delete my `venv` and remake a new one

    • @BigCityNightsMusic
      @BigCityNightsMusic Місяць тому

      @@LauraLouise-uz7qp thanks I got to the Jupyter notebook part but it wouldn't work - came to comments and this step was missing -

  • @bluesky_10
    @bluesky_10 7 місяців тому

    thank you, you son of god 🤣

  • @Smilebehappy1
    @Smilebehappy1 6 місяців тому

    slow down bro