Skip to content

Define jquery in require.js config #736

Open

Description

@alimanfoo

I was trying to view a notebook that used a javascript library (jstree) that had a dependency on jquery. When I load jstree via require, it goes looking for jquery, but because jquery is not defined in the require config, require tries (and fails) to load jquery from the wrong URL. I can work around this by manually calling require.config to define jquery, but it would seem better if nbviewer set this config with the correct URL from where jquery is already being loaded. Here's an example notebook illustrating the use case and workaround.

Activity

  1. parente commented on Jul 8, 2018

    @parente
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:EnhancementA proposed extension to the behavior of the project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions