Giter Site home page Giter Site logo

Comments (9)

mcmartins avatar mcmartins commented on June 2, 2024 1

:D no problem @nathancarter! I believe I have introduced some bugs in the version you installed :P, so in the next days I'll release a fully working version and advise you to use it.
Once again, thanks for trying this out.

from francy.

mcmartins avatar mcmartins commented on June 2, 2024

Hi @nathancarter, humm something happened after release v0.5.6... Will investigate and come back to you ASAP...

from francy.

nathancarter avatar nathancarter commented on June 2, 2024

There seems to be an additional installation step here before enabling nbextensions now. I tried doing that for jupyter_francy, but couldn't seem to get the right combination of commands together. Just mentioning this as a potential place to start hunting for the problem.

from francy.

nathancarter avatar nathancarter commented on June 2, 2024

Update:

The following procedure seems to install correctly:

$ jupyter nbextension install /path/to/where/pip/puts/your/python/stuff/jupyter_francy/
$ jupyter nbextension enable jupyter_francy/nbextension/extension --sys-prefix

But then when I run the notebook, I get script errors in require calls from francy. I tried it with index instead of extension, but with the same result.

from francy.

mcmartins avatar mcmartins commented on June 2, 2024

@nathancarter, thanks for the update. I messed up with something at some point... Since I'm working on a new feature to allow multiple renderers and did alot of changes, I've decided to upload the latest version into pypi.

I've just tried to install everything from scratch and it works fine. Make sure you remove all the pip francy modules installed, remove the extension from jupyter and then run:

(test-extension) mcmartins@local:~$ pip install jupyter_francy
(test-extension) mcmartins@local:~$ jupyter nbextension enable --py --sys-prefix jupyter_francy

Will install version 0.9.0.

It's in pretty early stage but I'll release a final version in the next days.

from francy.

nathancarter avatar nathancarter commented on June 2, 2024

Thanks for helping out with this! Unfortunately, I still have some problems.

I think I have successfully removed the old jupyter_francy, as you can see here:

$ jupyter nbextension list
Known nbextensions:
  config dir: /Users/nathan/.jupyter/nbconfig
    notebook section
      gap-mode/main  enabled
      - Validating: OK
      test-extension/main  enabled
      - Validating: OK

But when I attempt to install the new one, this happens:

$ sudo pip install jupyter_francy
[many bits of console output omitted here]
Installing collected packages: jupyter-francy
Successfully installed jupyter-francy-0.9.0a0
$ jupyter nbextension enable --py --sys-prefix jupyter_francy
Traceback (most recent call last):
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/bin/jupyter-nbextension", line 11, in <module>
    load_entry_point('notebook==5.5.0', 'console_scripts', 'jupyter-nbextension')()
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/vendor/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
    app.start()
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 988, in start
    super(NBExtensionApp, self).start()
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/jupyter_core/application.py", line 255, in start
    self.subapp.start()
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 896, in start
    self.toggle_nbextension_python(self.extra_args[0])
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 872, in toggle_nbextension_python
    logger=self.log)
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 483, in enable_nbextension_python
    logger=logger)
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 380, in _set_nbextension_state_python
    m, nbexts = _get_nbextension_metadata(module)
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/lib/python3.7/site-packages/notebook/nbextensions.py", line 1122, in _get_nbextension_metadata
    m = import_item(module)
  File "/usr/local/Cellar/jupyter/1.0.0_5/libexec/vendor/lib/python3.7/site-packages/traitlets/utils/importstring.py", line 42, in import_item
    return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter_francy'

Do we need the separate install step mentioned above, or am I barking up the wrong tree?

Thank you again.

from francy.

mcmartins avatar mcmartins commented on June 2, 2024

Hi @nathancarter , no worries. I really appreciate that you're trying the module out :)
That is strange, jupyter cannot find the module so I'm wondering if you have multiple versions of python installed? Perhaps pip is pointing to python2? Can you please check if you have a pip3? Jupyter requires python 3 and indeed I can see it in the logs (.../libexec/lib/python3.7/...), but could the jupyter_francy extension been installed on the python2 environment instead?

from francy.

nathancarter avatar nathancarter commented on June 2, 2024

Ah, that's it! My apologies for my lack of knowledge of my own configuration. Replacing pip with pip3 made it possible to install jupyter_francy after that, and I can confirm that launching jupyter with a GAP kernel correctly loads the jupyter_francy module (based on what the console says). I haven't tried to use it yet, but this step is all set! Thank you very much.

from francy.

mcmartins avatar mcmartins commented on June 2, 2024

Released version v0.10.0

from francy.

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.