##// END OF EJS Templates
add warning for remote import...
K.-Michael Aye -
Show More
@@ -509,7 +509,10 Any imports made inside the block will also be performed on the view's engines.
509 509 sync_imports also takes a `local` boolean flag that defaults to True, which specifies
510 510 whether the local imports should also be performed. However, support for `local=False`
511 511 has not been implemented, so only packages that can be imported locally will work
512 this way.
512 this way. Note, that the usual renaming of the import handle in the same line like in
513 `import matplotlib.pyplot as plt' does not work on the remote engine, the `as plt` is
514 ignored remotely, while it executes locally. One could rename the remote handle with
515 `%px plt = pyplot` though after the import.
513 516
514 517 You can also specify imports via the ``@require`` decorator. This is a decorator
515 518 designed for use in Dependencies, but can be used to handle remote imports as well.
General Comments 0
You need to be logged in to leave comments. Login now