imjoy-team / imjoy-jupyter-extension

Running ImJoy plugins in Jupyter notebooks
MIT License
11 stars 1 forks source link

jupyter nb extension #24

Closed monfort314 closed 2 years ago

monfort314 commented 2 years ago

Hi! I'm trying to set up the jupyter notebook imjoy extension. It seems that I have install the extension successfully: after typing

jupyter nbextension list

I'm getting this:

Known nbextensions:
  config dir: C:\Users\lab-nmsb\.jupyter\nbconfig
    notebook section
      imjoy_jupyter_extension/index enabled
      - Validating: ok
  config dir: C:\ProgramData\Anaconda3\etc\jupyter\nbconfig
    notebook section
      jupyter-js-widgets/extension enabled
      - Validating: ok

However, when I run the notebook, there is no imjoy icon. It seems I can also run this without any errors:

from imjoy import api
class ImJoyPlugin:
    """Defines an ImJoy plugin"""

    async def setup(self):
        """for initialization"""
        print('setting up')
        pass

    async def run(self, ctx):
        """called when the user run this plugin"""
        print('running')

        # show a popup message
        await api.alert("hello world")

# register the plugin to the imjoy core
api.export(ImJoyPlugin())

and I get this as an output: `

` What am I missing? I will appreciate any kind of help, Many thanks!
monfort314 commented 2 years ago

EDIT: Slightly embarrassing solution but I changed the browser from MS IE to chrome and it worked! Maybe you can suggest this in troubleshooting?