Git Product home page Git Product logo

Comments (4)

simra avatar simra commented on August 23, 2024

I've made some progress here.
Two issues:

  1. CodeMirror.requireMode and autoLoadMode are not defined by default. We need to load loadmode.js first.
  2. For unknown reasons, even though I see loadmode in the jupyter lib folder, I get a 404 when I try to load it.
    I added a require statement to fsharp.js to try to load loadmode.js:
add metadata hint that language is fsharp...
main.min.js:14176 Uncaught TypeError: CodeMirror.autoLoadMode is not a function
:8888/custom/fsharp.js?v=20150919200740:220 Uncaught TypeError: CodeMirror.requireMode is not a function
main.min.js:23181 Session: kernel_created (78964553-c6f9-42c8-aa61-d79b9e113e77)
main.min.js:22502 Starting WebSockets: ws://localhost:8888/api/kernels/51b31174-9be6-43e6-85f3-701afcf0eefe
http://localhost:8888/static/notebook/js/components/codemirror/addon/mode/loadmode.js?v=20150919200740 Failed to load resource: the server responded with a status of 404 (Not Found)
require.js:140 Uncaught Error: Script error for: /static/notebook/js/components/codemirror/addon/mode/loadmode.js
http://requirejs.org/docs/errors.html#scripterror
main.min.js:12030 Loaded extension: widgets/notebook/js/extension
:8888/nbextensions/widgets/notebook/js/extension.js?v=20150919200740:81 loaded widgets
main.min.js:14176 Uncaught TypeError: CodeMirror.autoLoadMode is not a function
kernel.js:98 Kernel: kernel_connected (51b31174-9be6-43e6-85f3-701afcf0eefe)
kernel.js:98 Kernel: kernel_ready (51b31174-9be6-43e6-85f3-701afcf0eefe)

from ifsharp.

FilippoPolo avatar FilippoPolo commented on August 23, 2024

I've found that the "right" location seems to be /static/components/codemirror/addon/mode/loadmode.js

Unfortunately, that file then attempts to require /static/components/codemirror/lib/codemirror
This results in a get that lacks the .js extension and is therefore not found. I'm not sure why require.js is not adding the extension.

from ifsharp.

simra avatar simra commented on August 23, 2024

There's something odd about how jupyter handles file requests- it seems to be very selective. When I get a chance I'll look into this further.

from ifsharp.

FilippoPolo avatar FilippoPolo commented on August 23, 2024

IntelliSense is now working in my fork with Jupyter.

from ifsharp.

Related Issues (8)

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.