Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Provide convenient method to execute magic commands from Python #16

Closed
anpaz opened this issue May 16, 2019 · 1 comment
Closed

Provide convenient method to execute magic commands from Python #16

anpaz opened this issue May 16, 2019 · 1 comment
Assignees
Labels
Area-Python Issue relates to the Python client for the IQ# kernel. Kind-Enhancement New feature or request Resolution-Done Issue closed as work was successfully completed.

Comments

@anpaz
Copy link
Member

anpaz commented May 16, 2019

The _execute(f'%magic.name {dumps(args)}') pattern occurs enough and it's useful for wrappers so it is worth adding a method to the public client API for executing magic commands given a name and a set of arguments. That would also make it a lot easier to stub out a mock client.

@cgranade cgranade transferred this issue from microsoft/QuantumLibraries Jul 11, 2019
@cgranade cgranade added Area-Python Issue relates to the Python client for the IQ# kernel. Kind-Enhancement New feature or request Resolution-Done Issue closed as work was successfully completed. labels Jul 11, 2019
@cgranade
Copy link
Contributor

This has now been added to the qsharp package, and will go live with the 0.8 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-Python Issue relates to the Python client for the IQ# kernel. Kind-Enhancement New feature or request Resolution-Done Issue closed as work was successfully completed.
Projects
None yet
Development

No branches or pull requests

2 participants