Giter Site home page Giter Site logo

Comments (11)

cornhundred avatar cornhundred commented on May 27, 2024 1

Hi @matrs, I think 0.5.18 did not build the Jupyter Lab extension correctly. I'll let you know when I release 0.5.19. Or you could try 0.5.17, which should work on Jupyter Lab.

from clustergrammer2.

cornhundred avatar cornhundred commented on May 27, 2024 1

The new release of Clustergrammer2 0.5.21 appears to be working in Jupyter Lab 2.0

Screen Shot 2020-05-05 at 8 39 38 PM

The change I made was here https://github.com/ismms-himc/clustergrammer2/blob/master/package.json#L48

Based on the recommendation from @jasongrout from gitter.

Let me know if it works for you @LustigePerson @matrs.

from clustergrammer2.

LustigePerson avatar LustigePerson commented on May 27, 2024 1

Yes, it works. Thanks for the fast fix. It will be in the next FASTGenomics release alongside the new jlab.

from clustergrammer2.

matrs avatar matrs commented on May 27, 2024 1

Thanks!

from clustergrammer2.

matrs avatar matrs commented on May 27, 2024

Just to clarify, when I try the setup instructions from the readme, it does install 0.5.17 but it doesn't work, that's why I tried other options. For me, 0.5.17/18 works in the lastest jupyter notebook and jupyterlab 1.2.7 which is the last 1.x available in conda . So this setup doesn't work for me:

$ jupyter labextension list
JupyterLab v2.0.1
Known labextensions:
   app dir: /home/mibu/miniconda3/envs/bif/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        clustergrammer2 v0.5.17  enabled  OK

from clustergrammer2.

cornhundred avatar cornhundred commented on May 27, 2024

@matrs, so you tried pinning the installation version with pip install clustergrammer==0.5.17 and it doesn't work? We'll be releasing a new version probably in the next week that should take care of the Jupyter Lab installation issue. We'll keep you updated.

from clustergrammer2.

matrs avatar matrs commented on May 27, 2024

I think i already tried that but I just did it again to be sure, in a clean environment It doesn't work:

$ conda list | egrep 'cluster|lab|jupyter|notebook'
clustergrammer2           0.5.17                   pypi_0    pypi
jupyter_client            6.1.2                      py_0    conda-forge
jupyter_core              4.6.3            py37hc8dfbb8_1    conda-forge
jupyterlab                2.1.0                      py_0    conda-forge
jupyterlab_server         1.1.0                      py_1    conda-forge
notebook                  6.0.3                    py37_0    conda-forge

$ jupyter labextension list
JupyterLab v2.1.0
Known labextensions:
   app dir: /home/mibu/miniconda3/envs/py37/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        clustergrammer2 v0.5.17  enabled  OK
Plugin 'jupyter.extensions.clustergrammer2' failed to activate.
(anonymous)	@	index.js:276
index.js:277 Error: No provider for: jupyter.extensions.jupyterWidgetRegistry.
    at f.e.resolveRequiredService (index.js:191)
    at index.js:149
    at Array.map (<anonymous>)
    at f.e.activatePlugin (index.js:149)
    at index.js:275
    at Array.map (<anonymous>)
    at f.e.start (index.js:274)
    at o (index.out.js:1035)
(anonymous)	@	index.js:277

It's always the problem with the registry, the thing is that clustergrammer2 0.5.17 and 0.5.18 work with jupyterlab 1.x and the last notebook

Edit: I just noticed that in this try i'm using jupyterlab 2.1 and not 2.0.1, it's because they just released it and it's a fresh installation so conda picked that. Anyways, it's the same problem with 2.1 - 2.0.1 and clustergrammer2 0.5.17 - 0.5.18. Also, when i searched for this problem, i did found errors form other widgets related to jupyterlab 2 and jupyter.extensions.jupyterWidgetRegistry

from clustergrammer2.

cornhundred avatar cornhundred commented on May 27, 2024

Thanks for checking that again. We'll let you know if we can get it working again in the next release

from clustergrammer2.

cornhundred avatar cornhundred commented on May 27, 2024

The issue might be related to this https://gitter.im/jupyter-widgets/Lobby?at=5e5dac8aec379e558ea01d6e

Quoting from gitter

Jason Grout @jasongrout Mar 02 20:51
I just published final versions of the npm packages to work in JupyterLab 2.0.
This message was deleted
@/all - ipywidgets now works in the newly released JupyterLab: jupyter labextension install @jupyter-widgets/jupyterlab-manager
Jason Grout @jasongrout Mar 02 21:02
@/all - For custom widget authors - I anticipate that all you need to do to add JupyterLab 2.0 support is publish a patch release of your npm package, adding || ^3 to your @jupyter-widgets/base dependency versions
For example, your dependency can look like:
"dependencies": {
"@jupyter-widgets/base": "^1 || ^2 || ^3"

from clustergrammer2.

LustigePerson avatar LustigePerson commented on May 27, 2024

Any Updates on this? We are about to Upgrade FASTGenomics to jlab 2.* but the widget seems not to work. I tested 0.5.19 and also 0.5.17-0.5.15 to make sure.

from clustergrammer2.

cornhundred avatar cornhundred commented on May 27, 2024

Hi @LustigePerson, I have not had time to try the approach outlined in the previous comment, but I will try it out in the next few days and let you all know. Thanks for your patience on this.

from clustergrammer2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.