itkwidgets
itkwidgets copied to clipboard
BUG: Fix check for SageMaker environment
@aylward I don't think that we actually need to differentiate but I will run through all of the steps to confirm.
I had to use the StudioLab GUI to enable the loading of extensions
Unfortunately this is the case for JupyterLab and Jupyter Notebook as well but we can address this in the docs so that it is clear. It is much more likely that people already have extensions enabled for local Jupyter instances but if they don't this would still be a hang-up. I don't believe there is a way to handle this programmatically.
I had to use conda to install node.js to support enabling of the ImJoy extensions and then I had to use the StudioLab GUI (couldn't use the juptyer-extension-manager or whatever command should have worked within python) to enable the ImJoy extension, and then I had to restart the environment.
I am starting from a fresh environment myself right now since my account had to be re-created and I am finding that the steps that I took last time do not seem to work and I cannot seem to get the notebook to recognize the presence of the imjoy-jupyterlab-widget at all. This is good that I am starting fresh because I can work through all the kinks to make sure the docs and warnings are all correct, but I am confused about the extension problems because I did not have to use the GUI last time. Do you know if using the GUI you installed imjoy-jupyter-extension or imjoy-jupyterlab-extension?
Hi,
I searched in the extension manager for imjoy, and only one appeared. First time I tried to install it, it reported it couldn't because node.js and npm weren't installed.
Just checked...I'm using a CPU run time, and here is what a search on imjo returns in studiolab: [image: image.png]
On Tue, Nov 15, 2022 at 8:07 AM Brianna Major @.***> wrote:
@aylward https://github.com/aylward I don't think that we actually need to differentiate but I will run through all of the steps to confirm.
I had to use the StudioLab GUI to enable the loading of extensions
Unfortunately this is the case for JupyterLab and Jupyter Notebook as well but we can address this in the docs so that it is clear. It is much more likely that people already have extensions enabled for local Jupyter instances but if they don't this would still be a hang-up. I don't believe there is a way to handle this programmatically.
I had to use conda to install node.js to support enabling of the ImJoy extensions and then I had to use the StudioLab GUI (couldn't use the juptyer-extension-manager or whatever command should have worked within python) to enable the ImJoy extension, and then I had to restart the environment.
I am starting from a fresh environment myself right now since my account had to be re-created and I am finding that the steps that I took last time do not seem to work and I cannot seem to get the notebook to recognize the presence of the imjoy-jupyterlab-widget at all. This is good that I am starting fresh because I can work through all the kinks to make sure the docs and warnings are all correct, but I am confused about the extension problems because I did not have to use the GUI last time. Do you know if using the GUI you installed imjoy-jupyter-extension or imjoy-jupyterlab-extension?
— Reply to this email directly, view it on GitHub https://github.com/InsightSoftwareConsortium/itkwidgets/pull/580#issuecomment-1315286923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACEJL7FQWAJVCXQ4DJPO63WIODJLANCNFSM6AAAAAAR732KWA . You are receiving this because you were mentioned.Message ID: @.***>
-- Stephen R. Aylward, Ph.D. Senior Director of Strategic Initiatives
Kitware: Delivering innovation.
@aylward After some more testing I can confirm that:
- We should not need to differentiate between Studio and Studio Lab environments. They seem to require the same steps to get up and running.
- The reason that you had to use the GUI for all of those steps is because the default kernel is not the same as the environment that the notebook is launched from, so although you installed the imjoy extension properly with pip, the notebook did not pick up on it.
- Node is only required in order to install the
imjoy-jupyter-extensionthat is suggested when you search for extensions through the GUI which isn't necessary with pip- I just sent out an email to Steve to try to sort out the best way to handle the kernel/launch env issue but in the meantime you can open a terminal and do a
pip install imjoy-jupyterlab-extensionfrom there and then refresh the page to get the extension to work.
- I just sent out an email to Steve to try to sort out the best way to handle the kernel/launch env issue but in the meantime you can open a terminal and do a
To improve the user experience, I am wondering if during
import itkwidgets
where someone is trying to use itkwidgets in Sage* environment, we install itkwidgets[lab] in the environment that is providing the Sage* JupyterLab frontend application, and issue a warning that they need to refresh the page?
In addition, we can see how to get itkwidgets installed by default...