Christian Fries created ZEPPELIN-2586: -----------------------------------------
Summary: Allow dependency management to bring up a popup with option to restart interpreter Key: ZEPPELIN-2586 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2586 Project: Zeppelin Issue Type: Improvement Components: Interpreters Affects Versions: 0.8.0 Reporter: Christian Fries If a notebook has a specific dependency, it should be possible to specify this requirement in the notebook via a %dep paragraph, which prompts the user for actions (compared to giving ERROR as with z.load). This is especially helpful, if the notebook is exported via JSON and send to another user. In contrast to the z.load command, the notebook should behave as follows: - if the dependency is already part of the interpreter, the command is silently ignored. - if the dependency is not part of the interpreter, a pop-up shows up presenting the following text and options: *This notebook requires groupId:artifactId:version. -- Permanently add dependency to the interpreter and restart the interpreter. -- Temporarily add dependency to interpreter and restart interpreter. -- Cancel In addition it should be possible to specify version requirements in a more flexible way, e.g. requiring 2.*.* or 2+.*.* where 2+ indicates greater or equal 2. Note: Afaik, z.load() is currently failing when it is not issued before any spark paragraph - even if the dependency was already loaded or specified. The feature above could be an improvement of z.load() but I would suggest an additional z.require(). Suggestion: The z.require command should allow to specify an additional message. Example: {code} %dep z.require("This notebook requires finmath-lib version 2 or greater to perform Monte-Carlo simulations", "net.finmath:finmath-lib", "2+.*.*") {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)