beakerx icon indicating copy to clipboard operation
beakerx copied to clipboard

Is pip3 installation possible yet?

Open posenato opened this issue 5 years ago • 14 comments

Hi, I would like to use beakerx with Python and Java kernels. I tried to install it via pip3 on my MacBook but I noted that not everything works well.

SUMMARY OF ISSUE

  1. The package beakerx-kernel-java (2.0.1) does not install Java kernel
  2. The package beakerx-all (2.0.1) does not install because it has the following error:
ERROR: Could not find a version that satisfies the requirement beakerx-widgets>=2.0.1 (from beakerx-all) (from versions: none)
ERROR: No matching distribution found for beakerx-widgets>=2.0.1 (from beakerx-all)

beakerx-widgets does not exist! 3. In order to use Java kernel, I had to install IJava (https://github.com/SpencerPark/IJava) 4. With such configuration, Java input is not possible in Java cells when the kernel is Python and magic is %java

So, the short question is the one in the subject: Is pip3 installation possible yet?

LONG HISTORY Currently, if I search beakerx via pip3, I obtain:

beakerx (2.0.1)                         - BeakerX: Beaker Extensions for Jupyter Notebook
splice-beakerx (0.0.1)                  - Splice Modification for TwoSigma Beakerx
beakerx-tabledisplay (2.0.1)            - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-all (2.0.1)                     - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-base (2.0.1)                    - BeakerX: Beaker Base Extensions for Jupyter Notebook
beakerx-kernel-scala (2.0.0)            - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-clojure (2.0.0)          - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-groovy (2.0.0)           - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-kotlin (2.0.0)           - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-autotranslation (2.0.0)  - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-sql (2.0.0)              - BeakerX: Beaker Extensions for Jupyter Notebook
beakerx-kernel-java (2.0.0)             - BeakerX: Beaker Extensions for Jupyter Notebook

If I install pip3 install beakerx, the program installs beakerx and beakerx-base. Then, I supposed that it was necessary to install beakerx-kernel-java to have Java kernel. I did it, but the kernel was not installed. Then, I tried to install beakerx-all, but it raised the error

ERROR: Could not find a version that satisfies the requirement beakerx-widgets>=2.0.1 (from beakerx-all) (from versions: none)
ERROR: No matching distribution found for beakerx-widgets>=2.0.1 (from beakerx-all)

In the above list, the package beakerx-widgets does not exist.

A Java kernel can be installed considering IJava (https://github.com/SpencerPark/IJava). With such a kernel, everything seems to work. The only big issue is when in a Java cell (%java), there is code for reading a user input like sc = Scanner(System.in); sc.nextInt(); Executing the cell, the notebook does not present the input form and freezes. If I use IJava kernel, everything works well.

posenato avatar Sep 23 '20 04:09 posenato

@EfimovVladimir Can you verify this please?

ildipo avatar Sep 27 '20 21:09 ildipo

I have the same issue. I tried to install it with Anaconda conda install -c beakerx beakerx_widgets but I get the following:

image

Berezhnyk avatar Sep 28 '20 15:09 Berezhnyk

@Berezhnyk does it help you if you will install python like conda install python=3.7.5 for your "base3-6" env?

EfimovVladimir avatar Oct 01 '20 14:10 EfimovVladimir

No, it doesn't help image

Berezhnyk avatar Oct 01 '20 15:10 Berezhnyk

@Berezhnyk could you try to install beakerx on new conda environment with python 3.7.5 and openjdk=11.0.1 like

conda create -y --name be1_all python=3.7.5
conda activate be1_all
conda install -y -c conda-forge openjdk=11.0.1
conda install -y -c beakerx beakerx_all

EfimovVladimir avatar Oct 01 '20 15:10 EfimovVladimir

Dear all, this thread should be around pip installation, no about a conda installation issue.

My original question was simple: is it yet possible to install BeakerX 2.* by pip3? Or, it is necessary to install 'conda' and, then, BeakerX?

Thanks :-)

posenato avatar Oct 16 '20 08:10 posenato

installation error with pip reproduced for me too

ERROR: Could not find a version that satisfies the requirement beakerx-widgets>=2.0.1 (from beakerx_all) (from versions: none)
ERROR: No matching distribution found for beakerx-widgets>=2.0.1 (from beakerx_all)

EfimovVladimir avatar Oct 19 '20 06:10 EfimovVladimir

Same problem here. Is it possible to compile the code from source (e.g. v1.5) and install it from there? What steps are necessary?

ronnac avatar Nov 16 '20 15:11 ronnac

Same error as @Berezhnyk and I tried all the following, still does not work.

conda create -y --name be1_all python=3.7.5
conda activate be1_all
conda install -y -c conda-forge openjdk=11.0.1
conda install -y -c beakerx beakerx_all

Anyone could help?

jinchen-hou avatar Dec 14 '20 16:12 jinchen-hou

There is no beakerx-widgets package on pypi:

image

jobevers avatar Dec 15 '20 17:12 jobevers

I was able to clone the repo and pip install the beakerx_widgets package: https://github.com/twosigma/beakerx_widgets/tree/master/beakerx_widgets

pip install beakerx_all still breaks though so you'll have to manually install the other sub-packages.

jobevers avatar Dec 15 '20 18:12 jobevers

Hi, I am also experiencing this when trying to install through pip (I have no other option):

pip install beakerx-all

Collecting beakerx-all
  Downloading beakerx_all-2.0.1-py2.py3-none-any.whl (2.2 kB)
Collecting beakerx-kernel-sql>=2.0.0
  Downloading beakerx_kernel_sql-2.0.0-py2.py3-none-any.whl (30.7 MB)
     |████████████████████████████████| 30.7 MB 2.4 MB/s 

[...]

ERROR: Could not find a version that satisfies the requirement beakerx-widgets>=2.0.1 (from beakerx-all) (from versions: none)
ERROR: No matching distribution found for beakerx-widgets>=2.0.1

Is there a way to get the widgets package on pypi? Would be awesome :-)

moovida avatar Aug 06 '21 20:08 moovida

@posenato You mentioned having to install the ijava kernel but this isn't necessary. This should be sufficient (provided you have openjdk installed) to run jupyterlab with beakerx java kernel:

pip install jupyterlab beakerx-kernel-java
beakerx_kernel_java install
jupyter lab

I am also trying to install beakerx with pip and figured this out by looking at https://github.com/twosigma/beakerx_kernel_java#readme

priggad avatar Oct 26 '21 14:10 priggad

@priggad One year ago, ijava was necessary.

posenato avatar Oct 26 '21 19:10 posenato