Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is pip3 installation possible yet? #8305

Open
posenato opened this issue Sep 23, 2020 · 14 comments
Open

Is pip3 installation possible yet? #8305

posenato opened this issue Sep 23, 2020 · 14 comments
Assignees

Comments

@posenato
Copy link

posenato commented Sep 23, 2020

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.

@ildipo
Copy link
Collaborator

ildipo commented Sep 27, 2020

@EfimovVladimir Can you verify this please?

@Berezhnyk
Copy link

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

image

@EfimovVladimir
Copy link
Contributor

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

@Berezhnyk
Copy link

No, it doesn't help
image

@EfimovVladimir
Copy link
Contributor

@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

@posenato
Copy link
Author

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 :-)

@EfimovVladimir
Copy link
Contributor

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)

@ronnac
Copy link

ronnac commented Nov 16, 2020

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?

@jinchen-hou
Copy link

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?

@jobevers
Copy link

There is no beakerx-widgets package on pypi:

image

@jobevers
Copy link

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.

@moovida
Copy link

moovida commented Aug 6, 2021

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 :-)

@priggad
Copy link

priggad commented Oct 26, 2021

@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

@posenato
Copy link
Author

@priggad One year ago, ijava was necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants