Closed dbl001 closed 4 years ago
Dear @dbl001 ,
The reason for this error is that you are using an old version of the macOS system for which we have not built the wheels. Therefore, your conda environment is trying to compile the library from scratch. You have two options:
giotto_learn_nightly-20191220.25-cp36-cp36m-macosx_10_11_x86_64.whl
and pip install the wheel file directly (i.e. put the renamed file in the PWD and simply type pip install giotto_learn_nightly-20191220.25-cp36-cp36m-macosx_10_11_x86_64.whl
). then, do the installation procedure again.
git clone
the giotto-learn repository in your PWD. If boost and make are not installed (which seems to be the case given your errors), please also type conda install boost
and conda install cmake
. After the two programs have been installed, type
cd giotto-learn
and then pip install -e .
. In this case, you will have to remove the giotto-learn-nightly from the requirements.txt file before proceeding with the installation.@lewtun : please do not hesitate to improve on my comment.
I opted for your second option. Everything built properly, I needed to add ipywidgets to my conda environment. plotly is displaying empty space on OS X 10.11.6.
On Dec 25, 2019, at 12:33 PM, matteocao notifications@github.com wrote:
Dear @dbl001 https://github.com/dbl001 ,
The reason for this error is that you are using an old version of the macOS system for which we have not built the wheels. Therefore, your conda environment is trying to compile the library from scratch. You have two options:
One quick fix (if it works), is to go here https://pypi.org/project/giotto-learn-nightly/#files https://pypi.org/project/giotto-learn-nightly/#files and download the macOS version for python 3.6, rename it to giotto_learn_nightly-20191220.25-cp36-cp36m-macosx_10_11_x86_64.whland pip install the wheel file directly (i.e. put the renamed file in the PWD and simply type pip install giotto_learn_nightly-20191220.25-cp36-cp36m-macosx_10_11_x86_64.whl). then, do the installation procedure again.
You have first to git clone the giotto-learn repository in your PWD. If boost and make are not installed (which seems to be the case given your errors), please also type conda install boost and conda install cmake . After the two programs have been installed, type cd giotto-learn and then pip install -e .. In this case, you will have to remove the giotto-learn-nightly from the requirements.txt file before proceeding with the installation. @lewtun https://github.com/lewtun : please do not hesitate to improve on my comment.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giotto-ai/tutorial_mapper/issues/4?email_source=notifications&email_token=AAXWFWYJQTRHM7QDGTT7R33Q2O7RFA5CNFSM4J7GLBLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUTATA#issuecomment-568930380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWFW64LSL57SSSL7VRGTLQ2O7RFANCNFSM4J7GLBLA.
@dbl001 thanks for raising this issue - i've now added ipywidgets to the requirements file. i've also suggested a fix to your empty space issue on issue #5
I followed these steps in my Anaconda 3.6 virtual environment on Ubuntu 16.06 LTS as well as on my Mac running OS X 10.11.6
conda install -c plotly plotly=4.4.1 conda install jupyterlab=1.2 conda install "ipywidgets=7.5" Still no plot displayed (and no error messages).
On Dec 25, 2019, at 1:31 PM, lewtun notifications@github.com wrote:
@dbl001 https://github.com/dbl001 thanks for raising this issue - i've now added ipywidgets to the requirements file. i've also suggested a fix to your empty space issue on issue #5 https://github.com/giotto-ai/tutorial_mapper/issues/5 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giotto-ai/tutorial_mapper/issues/4?email_source=notifications&email_token=AAXWFW553Q2LONXYSMTOCULQ2PGLBA5CNFSM4J7GLBLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUTUUQ#issuecomment-568932946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWFWZVEMRZ6BUME7TMAATQ2PGLBANCNFSM4J7GLBLA.
i've found that with jupyterlab, one usually needs to run the following extra steps:
# Avoid "JavaScript heap out of memory" errors during extension installation
export NODE_OPTIONS=--max-old-space-size=4096
# Jupyter widgets extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.1 --no-build
# FigureWidget support
jupyter labextension install plotlywidget@1.4.0 --no-build
# and jupyterlab renderer support
jupyter labextension install jupyterlab-plotly@1.4.0 --no-build
# Build extensions (must be done to activate extensions since --no-build is used above)
jupyter lab build
# Unset NODE_OPTIONS environment variable
unset NODE_OPTIONS
after running these steps, deactivate and reactivate your conda env and hopefully that solves the blank canvas problem.
Thank You! It’s now working on both platforms (e.g. - OS X 10.11.6, Ubuntu 16.06LTS).
Has anyone tries this with Google CoLab?
On Dec 26, 2019, at 12:58 AM, lewtun notifications@github.com wrote:
i've found that with jupyterlab, one usually needs to run the following extra steps:
Avoid "JavaScript heap out of memory" errors during extension installation
export NODE_OPTIONS=--max-old-space-size=4096
Jupyter widgets extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.1 --no-build
FigureWidget support
jupyter labextension install plotlywidget@1.4.0 --no-build
and jupyterlab renderer support
jupyter labextension install jupyterlab-plotly@1.4.0 --no-build
Build extensions (must be done to activate extensions since --no-build is used above)
jupyter lab build
Unset NODE_OPTIONS environment variable
unset NODE_OPTIONS after running these steps, deactivate and reactivate your conda env and hopefully that solves the blank canvas problem.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giotto-ai/tutorial_mapper/issues/4?email_source=notifications&email_token=AAXWFW5DALIH7BKF24IPKZTQ2RW3NA5CNFSM4J7GLBLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHVIBXI#issuecomment-569016541, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWFW52YAKYICRM25EH66LQ2RW3NANCNFSM4J7GLBLA.
great to hear it is working @dbl001 😄
we have not tested this on google colab, but that would likely be an interesting experiment to perform.
i'm closing this issue and #5 since it seems to have been solved.
Has anyone tried using the mapper on high dimensional word vector embeddings (e.g. wor2vec, GloVe, BERT, ElMo, GPT-2)?
On Dec 26, 2019, at 11:50 AM, lewtun notifications@github.com wrote:
great to hear it is working @dbl001 https://github.com/dbl001 😄
we have not tested this on google colab, but that would likely be an interesting experiment to perform.
i'm closing this issue and #5 https://github.com/giotto-ai/tutorial_mapper/issues/5 since it seems to have been solved.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giotto-ai/tutorial_mapper/issues/4?email_source=notifications&email_token=AAXWFW56RF5ADOIJNTEETK3Q2UDJLA5CNFSM4J7GLBLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHWCDMQ#issuecomment-569123250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXWFWZ5ZHDTQXXCKCHGER3Q2UDJLANCNFSM4J7GLBLA.
@dbl001 I'm not aware of any works on applying Mapper directly to word embeddings (especially on those from transformer models). A better place to discuss this than a GitHub issue would be on Slack:
I got this error trying to install 'tutorial_mapper' on OS X 10.11.6 in a conda 3.6 virtual enviornment (it worked on Ubuntu 16.06 LTS):