pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ipython/ipython/commit/29ad24c8dc929ccf4bf0f2bcff84196e1bc197f6

aa60c69660fa.css" /> add warning for remote import · ipython/ipython@29ad24c · GitHub
Skip to content

Commit 29ad24c

Browse files
committed
add warning for remote import
remote import handle aliasing does not work, as told in the docs. This is kind of unexpected, as it worked locally, without any warning, resulting in asymmetric module handles.
1 parent 22a44b8 commit 29ad24c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/source/parallel/parallel_multiengine.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,10 @@ Any imports made inside the block will also be performed on the view's engines.
509509
sync_imports also takes a `local` boolean flag that defaults to True, which specifies
510510
whether the local imports should also be performed. However, support for `local=False`
511511
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.
513516

514517
You can also specify imports via the ``@require`` decorator. This is a decorator
515518
designed for use in Dependencies, but can be used to handle remote imports as well.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy