10 ms·
Jupyter Notebook 7
- akasakahakada 3y agoMy problem with vanilla jupyter notebook is that they hide every settings from you. Look at those 4:3 ratio dead zones on two sides, who would have thought that you can edit the css or javascript preference to increase your screen real estate? People told me to use extensions but none of them really actually work, including the installation process.
- bsilvereagle 3y ago> including the installation process Jupyter has a habit of breaking extensions on version upgrades. jupyterlab 3 -> 4 is a good example of this. Maintainers have to modify their metadata and then run a script. While this is trivial, maintainers have to be aware of the version upgrade, find time to do the upgrade, test, and then deploy. It’s really frustrating being a version behind because of extensions you need.
- nl 3y ago> Look at those 4:3 ratio dead zones on two sides Good thing they are using one side to put a debugger in (shown in the screenshot)
- oneeyedpigeon 3y agoIt's a fair point, but it's hardly unique to Jupyter. In fact, while 99% of websites suffer from this problem, I think it's unfair to highlight it specifically wrt Jupyter. Heck, even the site we're on right now does a poor combination of uncomfortably-long lines AND unused left and right margins.
- ZitchDog 3y ago99% of websites are not insanely popular development environments. vscode.dev, for example, takes up the full browser width.
- nl 3y ago> Both Jupyter Notebook and JupyterLab are widely used across data science, machine learning, computational research, and education. Are they though? Does anyone actually use JupyterLab by choice? From what I've seen people love Jupyter Notebook but find JupyterLab misses the mark (and this is certainly my experience).
- daniel_grady 3y agoStrongly agree.
- laichzeit0 3y agoNotebook classic for me. Vim keystrokes + Black plugin for formatting. I hate JupyterLab, have tried it multiple times. Have tried VSCode and PyCharm’s notebooks (I use PyCharm for actual development). I always go back to Classic as it just feels right.
- devsda 3y agoThe couple of times I experimented with jupyter ecosystem, it was only through labs. I thought notebook is the barebones app and labs is the more integrated ide like approach. But still for some reason didn't stick with it. Would you mind sharing the areas where you feel lab falls short and where notebook does it better? I want to give notebooks a try.
- akasakahakada 3y agoIf there isn't jupyterlab, I will just stick with google colab. Same notebook but lightyears better inplementation. You can tab to autocomplete code off the shelf in colab.
- timlod 3y agoI've long switched to Emacs/Org, but used JupyterLab extensively before (as a data scientist). It's way more powerful than vanilla notebooks since you can open notebooks/code/related side-by-side, easier to extend (with lab extensions), etc. I always thought people only still used vanilla notebooks because that's what people say they use, e.g. "I work with Jupyter notebooks" (even though that may well be in JupyterLab). So most regular users wouldn't necessarily know about JupyterLab.
- wodenokoto 3y agoI really like notebooks and often end up preferring them over lab. But even though VS code has poor support for notebook shortcuts (half the time a cell is in focus “the wrong way” so you can’t use ‘b’ to create a new cell) I find the convenience of just clicking a notebook file and see it rendered too much. Regardless I am happy to see they have revived the project and am eager to check out the new release!
- kltpacx 3y agoI have never understood the appeal of this. You can generate good looking presentations, but that is all. Is any real science done with this or is it the Powerpoint for PyCon talks?
- tempaccount1234 3y agoI didn‘t „get“ Jupyter the first time it used it. A year later it clicked. A Notebook keeps state while you write it. This is different from IDEs, where programs lose state while you are writing code. Now I use it all the time - next to an open IDE, as a playground to quickly test ideas and algorithms.
- conkeisterdoor 3y agoI also use it in tandem with my IDE day to day as a data engineer, for basically the same reasons. I really like being able to interactively explore and transform a dataframe while developing new pipelines, or debugging existing ones (all of which are implemented as modules in a Python package, not as Notebooks).
- data-ottawa 3y agoThis is critically important when one step of your analysis takes 10+ minutes to run. You want to be able to explore the output and not worry about rerunning all the calculations like a file/IDE based tool would. Reactive notebooks are nice but I’ve accidentally reran slow SQL queries because I updated an upstream cell and that’s painful (using Pluto, ObservableHQ, and HexComputing). In practice I never see or create notebooks that don’t run when you push the run-all button, it’s a well understood and easily avoidable issue. It’s probably a local optimum but I’m happy with them.
- taeric 3y agoIDEs can 100% do this, too. The art of connecting to a running program using the debugger is just something folks stopped caring about. This led a lot of programming environments to where batch loading of the code is basically required. But "image based" workflows are a very old concept and work great with practice. Some older languages were based on this idea. (Smalltalk being the main one that pushed this way. Common Lisp also has good support for interacting with the running system.) It is a shame, as many folks assume everything has to be "repl" driven, when that is only a part of what made image based workflows work.
- deleted 3y ago[deleted]
- batterylow 3y ago> The major change is building the Jupyter Notebook 7 interface with JupyterLab components so that the two applications share a common codebase and extension system. This is interesting! Looking forward to testing the purple theme I use [1]. I wonder if extension developers will need to maintain three sets of instructions now? JupyterLab, Jupyter Notebook >= 7, and Jupyter Notebook < 7 [1] https://github.com/shahinrostami/theme-purple-please https://github.com/shahinrostami/theme-purple-please
- nullcipher 3y agoI thought Notebook is getting deprecated. What is the difference between Jupyter Lab and Jupyter Notebook ? Are these developed by two completely different teams? Why maintain two code bases?
- milliams 3y agoThe point here is that they've unified the codebases. The application "Jupyter Notebook" is just a single-document version of "JupyterLab", designed to just do that one part of Lab. Previously there was "Jupyter Notebook". Then they separately wrote JupyterLab (creating a brand new implementation of notebooks for it). Now, they're taken the JupyterLab notebook code and used it to replace "Jupyter Notebook".
- nullcipher 3y agoThanks for explanation. I still don't get what is the motivation to keep Jupyter Notebook going. Is it different feature wise? Or it's just a chrome over JupyterLab because people like the retro look of Jupyter Notebook?
- throwaway375758 3y agoDoes it mean that RISE https://rise.readthedocs.io/en/stable/ https://rise.readthedocs.io/en/stable/ will break? I use it sometimes to turn a notebook into a presentation and it doesn’t work with Jupyter Labs
- agoose77 3y agoYou should check out https://github.com/deathbeds/jupyterlab-deck https://github.com/deathbeds/jupyterlab-deck
- boomskats 3y agoSlightly off-topic, but does JupyterLab still run on zeromq?
- afshin 3y agoYes. Jupyter kernels all talk over zeromq channels, irrespective of the front-end user interface.
- smcl 3y agoMan Open Source software should not post announcements like this using a blogging platform that nags you to pay to view posts. Like it's possible to dismiss the prompt and view the post (for now at least) but something about that definitely feels off.
- tomrod 3y ago100% agreed. I can't stand Medium. Much <3 to the Jupyter team. Github pages + Jekyll is performant!
- smcl 3y agoOh I really like Jupyter too. I don't want them to have a bunch of extra overhead or to roll their own blogging engine or anything - though I have experimented with Jupyter notebooks for writing simple technical blogs and it's actually pretty nice.
- canadianfella 3y ago[dead]
- tomrod 3y agoI have a github-hosted blog (roderick.dev) to which I woefully dedicate too little time. But adding it is as simple as writing markdown and putting a new entry in _posts.
- anaganisk 3y agoGetting paid feels off?
- _ea1k 3y agoDoes medium pay enough for that to be worthwhile?
- smcl 3y agoI don't have a great view of how the organization behind Jupyter operates, but I'd be really surprised if they went with Medium as a way to support themselves. What feels off is an open source project (likely by accident or unwittingly) steering users towards giving to a for-profit company.
- d33 3y agoTimely! I just deployed it on our company server. There's a hidden gem that's not enabled by default and really helps when pair programming in Jupyter: https://jupyterlab.readthedocs.io/en/stable/user/rtc.html https://jupyterlab.readthedocs.io/en/stable/user/rtc.html Here's a Dockerfile that enables it: FROM jupyter/scipy-notebook:2023-07-25 RUN pip install jupyter-collaboration ENV DOCKER_STACKS_JUPYTER_CMD="lab --collaborative" Usage: docker build . -t jupyter-collaboration && docker run -p 10000:8888 jupyter-collaboration The only missing would be having more than one cursor and some convenient way to start and attach remote servers, e.g. over AWS...
- DanielVZ 3y agoJupyterhub can deploy multiple servers, but so far I’ve only deployed it in Kubernetes.
- ysleepy 3y agoIt seems they have still not fixed that notebooks lose output when reloading or opening running notebooks on another machine. https://github.com/jupyterlab/jupyterlab/issues/12422 https://github.com/jupyterlab/jupyterlab/issues/12422 That whole issue feels so stupid. I quite enjoy jupyter lab otherwise, even if a lot of it is brittle and annoying.
- zeitlupe 3y agoI thought Jupyter Notebook has been superseded by Jupyter Lab. What reason is there to prefer Jupyter Notebook over Jupyter Lab?
- analog31 3y agoFor me, less distracting and confusing visual clutter on the screen. Also, the pane showing the file hierarchy is redundant with the file explorer that the OS already provides. But either way, not having to use an IDE is a blessing. Especially on a 14" touch screen laptop. Note that I'm probably a freak, lots of my friends love their IDE's, but having having something that works for my particular brain and my eyeballs is a blessing.
- chaxor 3y agoYou describe the use case for vim, not notebook. Use vim and jupyterlab. It makes working on several projects much smoother.
- kasperset 3y agoUsed to like notebooks but it becomes messy if not checked. I think they are good for some use cases such as short analysis. Switched back to file and folder organization along with Make file. Tedious yes but prevents me from messing my analysis from ad-hoc variables or calculation. Having said that, notebooks are good way to experiment.
- stared 3y agoI am curious how do you use Jupyter? For me, it used to be Jupyter Notebook. For reasons I cannot pinpoint, I never got convinced to JupyterLab. Sometimes I use Google Colab, primarily for sharing and using GPU for deep learning. Now, when I run it locally, I do it in Visual Studio Code (https://code.visualstudio.com/docs/datascience/jupyter-notebooks https://code.visualstudio.com/docs/datascience/jupyter-noteb...), since I don't need to jump back and forth between it and the rest of the code.
- macleginn 3y agoI repeatedly ran into bugs and unpleasant behaviours in the VSC version, so I stick with browser notebooks. I did not find the lab version to be an improvement either.
- tempaccount420 3y agoSame here - VS Code or Google Colab if I need an Nvidia GPU. I wish I could get Google Colab's GPU in VS Code, like Paperspace lets you do: https://docs.paperspace.com/gradient/notebooks/notebooks-remote-kernel/ https://docs.paperspace.com/gradient/notebooks/notebooks-rem....
- pizza 3y agoThe vscode version, for me, has tended to be a better experience, with fewer random disappointments [0], than the pycharm version. Which is a shame, because the pycharm version, if it got at least as good as pycharm generally, would probably be better imo. But I hear that the new jetbrains notebook ide is the one getting the love [0]: - random unusable scrolling with vim mode - gg scrolls to top of notebook rather than top of cell - seemingly more-limited refactoring - ipykernel headaches when I’ve already specified the project interpreter - randomly cell contents get erased on cell execution - wsl headaches (allowing firewall exceptions for each new project) - windows jupyter headaches (having to manually terminate jupyter sometimes to quit the ide) - sometimes the debugger gets stuck fetching variables before displaying them - some kind of incompatibility between non-pycharm-created notebooks possibly related to nb format version so they can’t be read - removal of (ui affordances for?) the cell mode for scripts?
- 3y ago
- gammarator 3y agoFor folks asking what the Notebook UX offers that the Lab does not, this github thread may be enlightening: https://github.com/jupyter/notebook/issues/6210 https://github.com/jupyter/notebook/issues/6210 (TLDR: some novice users in educational settings find the lab environment overwhelming.)
- kumarvvr 3y agoI am new to the Jupyter ecosystem. Can anyone point me to resources that allow me to generate PDF reports from Jupyter Notebooks? I want to build a template notebook, that has internal code to fetch data from a database, based on command line arguments and then run the notebook and then strip all the code parts and generate a beautiful PDF document.
- pgryko 3y agoMaybe via an extension? https://saturncloud.io/blog/how-to-hide-code-in-jupyter-notebook-report-mode/#step-1-install-the-hide-input-all-extension https://saturncloud.io/blog/how-to-hide-code-in-jupyter-note...
- esalman 3y agoJupyter nbconvert should do it for you- https://nbconvert.readthedocs.io/en/latest/ https://nbconvert.readthedocs.io/en/latest/
- thecfrog 3y agoYou want Quarto. https://quarto.org/ https://quarto.org/
- drBonkers 3y agoCan I use Quarto in a cell-notebook style? So far it seems like I can only get it compiled into a PDF, which feels different from Jupyter. I could be completely wrong here, just looking for insight.
- thecfrog 3y agoQuarto is used to convert from code (script or notebook) to formatted output. You can annotate a Jupiter notebook and have Quarto compile that into a PDF. If you are looking for something that changes the look of the notebook itself I don’t think that exists. But you can still include some interactivity when exporting to html.
- vasili111 3y agoMy understanding was that the developers plan was to develop JupyterLab as a future version of Jupyter Notebook. But it seems that both of them now get updates. My question is what is: When to use JupyterLab or Jupyter Notebook and waht is the difference between them?
- Tomte 3y agoDoes debugging work for you? Neither in Notebook nor in Lab can I click in the gutter to set breakpoints. The debugging panel is open, the documentation is clear (except that by default there are no line numbers and you have to activate that), but nothing happens. Where exactly am I supposed to click?
- afshin 3y agoThere is a little bug icon in the toolbar of your open notebook in both user interfaces. The bug only appears if you have a kernel that supports debugging (e.g., ipykernel). So if you see the little bug on the right-hand side of the toolbar for your notebook, when you enable it, you should start seeing the variables in your memory state and you should have the ability to click in the gutter to add breakpoints.