Giter Club home page Giter Club logo

Comments (6)

tribbloid avatar tribbloid commented on June 25, 2024

Thanks a lot. This proves my speculation, a patch is already on the way. It's interesting to see that ipython#6793 is also half done: when you first switch the kernel it uses kernelspec, if you open the notebook again it uses kernel_info
May I ask an off-topic question? The comment shortcut "ctrl-/" seems to use python's "#" instead of codemirror's "//" on scala kernel, does #6793 also fix the comment shortcut problem?

from ispark.

rzykov avatar rzykov commented on June 25, 2024

I have a Mac, CMD-/ comments line correctly with "//" under ipython 3.0.0

from ispark.

tribbloid avatar tribbloid commented on June 25, 2024

Good! so theoretically I can fix both, give me a few days :) Thanks a
lot buddy

On 04/30/2015 05:13 AM, rzykov wrote:

I have a Mac, CMD-/ comments line correctly with "//" under ipython 3.0.0


Reply to this email directly or view it on GitHub
#16 (comment).

from ispark.

tribbloid avatar tribbloid commented on June 25, 2024

OK, it looks like the workload is more than I expected: The IPython server has an built-in adapter to convert messaging protocol v4 to v5. But its not very well rounded (some conversions are incomplete, like autocompletion and kernel_info_reply), so I either upgrade the entire protocol to v5, or tolerate the incomplete adapter. I'll gradually implement the new protocol and try to reach the author of IScala, see if I can backport the new protocol.

Thanks a lot

from ispark.

tribbloid avatar tribbloid commented on June 25, 2024

I've updated the messaging protocol to the latest version but seems like it doesn't help anything. Here is my post for the problem:

http://python.6.x6.nabble.com/kernel-info-reply-is-ineffective-on-code-highlighting-td5095065.html

Any help is appreciated. Also, the latest messaging protocol has been committed to IPython-3.x branch, so please be sure that you've checkout that branch before testing.

from ispark.

tribbloid avatar tribbloid commented on June 25, 2024

OK, now I can confirm that the kernel/messaging is working properly.
The problem is caused by notebook codemirror javascript which always returns /codemirror/mode/clike/clike.js
The problem has been reported in IBM spark-kernel before: https://github.com/ibm-et/spark-kernel/issues/109
Now I just need to find the frontend solution.
@rzykov: since you have observed syntax highlighting on IPython 3.0 I think your codemirror javascripts are already fixed. Could you help me test the latest build again or tell me how to override clike.js being used for Scala?

from ispark.

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.