Live data from Hacker News

JupyterLab 3.0

blog.jupyter.org

21–30 of 145 posts

Re: JupyterLab 3.0

#21
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

Relevant XKCD.

https://xkcd.com/1987/

Re: JupyterLab 3.0

#22
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

You should use Anaconda instead of pip to install data science related tools in Python.

```

$ conda create -n {new_environment_name} python

$ conda activate {new environment name}

$ conda install jupyterlab

```

Re: JupyterLab 3.0

#23
post #3

Hmm, what is mamba? I thought I was at least sort of up to date with the various python dependency managers, but that one is new to me. Relatedly, I have a grand vision of having as part of my development environment a jupyter notebook always at hand, in which to explore data as necessary, whip up scripts, accumulate little helper functions, etc. Basically, any time I have that "hm, I wonder..." itch, I'd like to be…

On linux, I install Anaconda and just launch JupyterLab from Anaconda Navigator.

But you could just install conda and just `conda env export -n base` to export your environment.

Re: JupyterLab 3.0

#24
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

Always try using a virtual env. Also try using pip directly through ‘python3 -m pip install jupyter’ . Same to run it to bypass path issues ‘python3 -m jupyter notebook’. You should be up and running in a couple mins!

Re: JupyterLab 3.0

#25
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

Yeah, I use portainer and then load a docker image of Jupiter and import the notebook there.

Dependency management hell isn't just a Javascript problem these days.

Re: JupyterLab 3.0

#26
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

Just install this: https://www.anaconda.com/products/individual

Re: JupyterLab 3.0

#27
I've seen a few projects that have used the JupyterLab UI for other projects as a simple interface - it looks really neat and slick.

I just wondered if anyone has any ideas how you go about this as I've been drawing a blank.

Re: JupyterLab 3.0

#28
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

You should use Anaconda instead of pip to install data science related tools in Python. ``` $ conda create -n {new_environment_name} python $ conda activate {new environment name} $ conda install jupyterlab ```

You also have to manually add the kernel for that environment via:

({new_environment_name}) ...$ python -m ipykernel install --user --name {new_environment_name} --display-name "Python ({new environment display name})"

The env won't be accessible in jupyter (lab or notebook) until you do this step.

[0] https://stackoverflow.com/questions/39604271/conda-environme...

Re: JupyterLab 3.0

#29
post #18
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

True. I like Python, but the ecosystem can be very confusing for a quick dive. It's easy to get lost between pyenv, virtualenv, pipenv, pip, pip3, easy_install and friends.

Very true - further evidenced by the five or six different approaches your sibling comments are recommending.

Re: JupyterLab 3.0

#30
post #14

I don't write Python code for my work. Last weekend I came across an interesting Jupiter notebook and figured I'd give it a try on my work laptop. "It's probably as easy as brew install pip and then use that to load the other dependencies," I assumed. Over an hour later I had to give up. There was initially some kind of Python version conflict on my Mac. Eventually some version of JupyterLab was installed somewhere,…

Not sure about the Jupyter-specific issues but macOS comes with Python 2 installed, so you have to install Python separately and use the `python3` binary, or alias `python` to the `python3` binary.

Then remember to run pip using `python3 -m pip ` and use virtual environments (venv)

I stumbled on this a couple weeks ago and documented the process here https://flaviocopes.com/python-installation-macos/

I found the same problem with Ruby (old version preinstalled on macOS)

Post reply on HN