Afar

Latest version: v0.6.1

Safety actively analyzes 628924 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.0

- Workaround to work with `%%time` and `%%timeit` magics
- Avoid "Large object" UserWarning by using `client.scatter`
- Add `run.cancel` method to cancel pending tasks.
- Also cancel pending tasks on KeyboardInterrupt
- Capture print statements to stdout and stderr, and display locally
- If in a notebook, use ipywidgets to update output asynchronously

**Many thanks to jrbourbeau and gjoseph92 for raising issues and offering suggestions!**

0.3.2

- Set `pure=False` when submitting the task, which is probably safer to assume

0.3.1

- Only use a rich repr method if it returns a string
- Pass client to `Where` object, such as `afar.remotely(client=client)`

0.3.0

- Display rich repr of final expression if it's not an assignment.
- This computes the repr on the dask cluster. In other words, we send the repr to the client to display, not the original object.

0.2.1

- Better serialization for the callable we submit to the Dask scheduler

0.2.0

- Update method to get the context body. Hopefully more reliable 🤞
- `with afar.run:` now gives a useful error message (missing location!) instead of running the code
- Add `run.context_body` attribute to hold a list of lines of the context body
- Add `later` location, such as `with run, later:`
- This is useful to get the context body, but not execute it
- `later` doesn't do much yet. I'll handle it later.
- Test running in a notebook via `nbconvert`
- Test PyPy with conda

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.