First steps with Jupyter Lab: How is it different from the notebook?

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 36

  • @stronglycorrelated
    @stronglycorrelated Год назад +14

    I like how efficient it is that by spending less than nine minutes on this video I now know the most important use cases of JupyterLab. Great video!

  • @agermoune
    @agermoune Год назад +1

    Glad I found you channel while exploring on how Jupyter launcher work. I like your way of explaining things so subscribed immediately and will look forward to your upcoming videos.
    THANK YOU Reuben!

    • @ReuvenLerner
      @ReuvenLerner  Год назад

      My pleasure, delighted to have you join me here!

  • @mazenalsakkaf
    @mazenalsakkaf 23 дня назад +1

    Great video. Is there a way to have a custom dark theme; not the one that comes with Jupyter lab?

    • @ReuvenLerner
      @ReuvenLerner  20 дней назад +1

      I think that you can indeed define your own themes (dark, light, or anything you want), but I've never done so myself. I found a GitHub repo (github.com/dunovank/jupyter-themes) that seems to have a bunch of them, and which will probably give you some inspiration for how to do your own.

    • @mazenalsakkaf
      @mazenalsakkaf 20 дней назад +1

      @@ReuvenLerner Many thanks for the feedback.

  • @rje4242
    @rje4242 Год назад +2

    sharing Kernels is a handy feature. I can create a Kernel in a notebook, share it in a second notebook, and then again in a console.

    • @ReuvenLerner
      @ReuvenLerner  Год назад

      I haven't ever tried sharing kernels -- thanks for telling me about this; it sounds very useful.

  • @richardayensu1711
    @richardayensu1711 7 месяцев назад +1

    How do I change the blue panel tab to green so I can print my codes. The output for my codes are not displaying

    • @ReuvenLerner
      @ReuvenLerner  7 месяцев назад

      I know that it's possible to change the color definitions, but I'm not sure how, I'm afraid.

  • @arwaabougharib8698
    @arwaabougharib8698 5 месяцев назад +1

    Thanks for the great video! I'm curious as to why I'd want to open a new launcher when every new notebook I create in the same launcher has a different kernel...

    • @ReuvenLerner
      @ReuvenLerner  5 месяцев назад

      I think the launcher is just a way to start new notebooks, consoles, etc. Each of those still has its own kernel.

  • @successorantigha9466
    @successorantigha9466 Год назад +2

    I'm new here. So every time I want to open JupyterLab, I will have to go to Cmd to launch it?

    • @ReuvenLerner
      @ReuvenLerner  Год назад

      I'm sure that there are graphical launchers, but I'm' a command-line kind of guy, so I haven't ever used them. Sorry!

  • @jameslovering9158
    @jameslovering9158 7 месяцев назад +2

    Will they add ChatGPT ?

    • @ReuvenLerner
      @ReuvenLerner  7 месяцев назад

      They're not going to add it into Jupyter or JupyterLab, but there are Python modules you can use to connect, if/when you want.

  • @kisho2679
    @kisho2679 4 месяца назад +1

    How can documents be nested/included in JupyterLab, being updated when changed?

    • @ReuvenLerner
      @ReuvenLerner  4 месяца назад

      JupyterLab can handle folders, including sub-folders. So you can put documents, including notebooks, inside of those folders.

    • @kisho2679
      @kisho2679 4 месяца назад +1

      @@ReuvenLerner Yes, well, I mean "include" (=call/embed/encapsulate) an external/underlying file (e.g. .md, .tex, etc.) into a cell of a new document, which will be automatically uptated when the content of the underlying file changes ...

    • @ReuvenLerner
      @ReuvenLerner  4 месяца назад

      @@kisho2679 Oh, I don't think that's possible. (Maybe I'm wrong, though!) Instead, you'll probably want/need to write a bunch of code in a Python module and then import that module into your notebook.

  • @jerryhall5709
    @jerryhall5709 Месяц назад +1

    Am I the only one who had problems with undo and redo in Jupyter? It completely messed up my code. I tried to use it as an IDE. Now I don't trust it anymore. It seems to happen when you paste code in the editor. Then it loses track where you were.

    • @ReuvenLerner
      @ReuvenLerner  Месяц назад

      You're not alone; it can be very confusing. First, from what I can tell, there are separate undo/redo systems for text (inside of a cell) and for cells (at the Jupyter level). I've found that undo works great at the cell level if you do it soon after deleting something, but then it gets tricky and/or confusing and/or messed up. Just a few days ago, while I was working on the code for Bamboo Weekly, I accidentally deleted a bunch of cells by pressing x. I used z to undo, and it undid some of the deletions, but not all of them. I think that this is because I did something between deleting and undoing, but I might be wrong.
      So... undo is great, but it's far from a panacea. And the fact that cells don't have to be edited or run in order makes it that much trickier.

  • @mr.goldenball333
    @mr.goldenball333 Год назад +1

    Hi Reuven! How do you manage your python virtual environments?
    I tried to keep my base python environment clean and install all other packages in virtual environment. (vscode)
    But this is really not user friendly😟 Could you share your solution with us? Thank you.

    • @ReuvenLerner
      @ReuvenLerner  Год назад +3

      I have to sheepishly admit that I'm usually teaching, and don't need venvs when I'm doing that. So Jupyter + venvs isn't something I personally need to deal with much. That said, this is a great topic suggestion, and I know that there are a bunch of good solutions out there. Let me see what I can dig up, and I'll try to do a video about that down the road!

    • @tenaj524
      @tenaj524 Год назад +2

      Vscode makes it pretty user friendly to select the version of python you want to use -- click on the name of the current python interpreter on the bottom of the window (in the status area) and then navigate to the python virtual environment you want to use. Is creating the virtual environment itself the issue? Creating and tearing down virtual environments is pretty routine once you've been developing in python for a while, but there is a tool called "virtualenvwrapper" that you can use to bundle up commands you want to run every time you create a new virtual environment that might be useful to you (for example, if you want to put pandas in every new virtual environment you create, virtualenvwrapper will give you a hook to implement that).

    • @ReuvenLerner
      @ReuvenLerner  Год назад

      @@tenaj524 Good point! I always forget how much of this functionality VSCode includes. Thanks for sharing!

  • @kisho2679
    @kisho2679 3 месяца назад +1

    does it have integrated "SageMath"?

    • @ReuvenLerner
      @ReuvenLerner  3 месяца назад

      I'm not sure; I'm not really a math person, and haven't ever used SageMath. I know that Jupyter has some integration with TeX/LaTeX, but I've never used it.

  • @amenmechlaoui8717
    @amenmechlaoui8717 Месяц назад

    how to activate gpu bro ?

  • @stevenshrii
    @stevenshrii Месяц назад +1

    How about mars-lab

  • @Top5animecrossovers
    @Top5animecrossovers 11 месяцев назад +1

    I don't get what I want, but you not bad speaker.
    thanks

  • @saifullahshaikh8873
    @saifullahshaikh8873 11 месяцев назад +1

    I can see how it's different, but I'm not sure that it's better.

    • @ReuvenLerner
      @ReuvenLerner  11 месяцев назад +1

      Since the new version of Jupyter notebook came out, I think that the advantages (for people like me, at least) have largely melted away.