Giter VIP home page Giter VIP logo

Comments (14)

juhasch avatar juhasch commented on July 26, 2024

What version of IPython are you using ?
Make sure you select the right branch (2.x or master) of this repository.

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

Ah-ha. Right you are, juhasch. I read those installation instructions as referring to which python version (2.x or 3.x) you're using, rather than which IPython version. Perhaps this could be bolded in the installation instructions to prevent future confusion?

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

So I've now downloaded and installed the 2.x version of python-markdown and I get the same behaviour. Not sure where I'm going wrong, sorry.

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

Can you look at the Javascript console output in the Browser, are there any error messages ?

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

The javascript console reports Loaded extension: python-markdown when I run IPython.load_extensions('python-markdown'). When I render the markdown cell there is no additional console output.

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

Have you tried clearing your browser cache or opening a private window ?
Somtimes Javascript caching is too agressive in the Browser.

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

Same behaviour after clearing cache, and also tried opening in a private window. Also tried the same thing in Chrome and I get the same behaviour. The javascript console reports Loaded extension: python-markdown, then no further output.

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

You can try this version that does some logging to the Javascript console:
https://gist.github.com/c37408a0d79156f28c17.git
You should see messages like:
PyMD: kernel started
PyMD: render
PyMD: execute
If not, the extension does not execute properly.

from jupyter_contrib_nbextensions.

lhcamilo avatar lhcamilo commented on July 26, 2024

I had the same problem, but this version you just posted seems to work for me.

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

I don't get any additional console output, unfortunately.

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

So which version of IPython are you using exactly ?
Do you see the correct notebook extension file if you go to http://127.0.0.1:8888/nbextensions/python-markdown.js ?
(assuming your notebook server is at 127.0.0.1:8888)

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

Actually, the gist code now works for me (sorry!). Before I had shut down the notebook and re-opened it, showing the same behaviour as the 2.x code. Since then I've shut down the notebook server. I just restarted the server, and I now get the additional console output

Loaded extension: python-markdown
PyMD: render
PyMD: execute
PyMD: callback

and the rendering works. So it's something about the 2.x version that changes in the gist you posted.

The result of IPython.version_info is (2, 2, 0, '').

from jupyter_contrib_nbextensions.

juhasch avatar juhasch commented on July 26, 2024

Thanks for the feedback. I have updated the extension, so the GitHub version should work, too.

from jupyter_contrib_nbextensions.

tomwallis avatar tomwallis commented on July 26, 2024

Great, thanks @juhasch. I can confirm that the GitHub version now works.

from jupyter_contrib_nbextensions.

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.