-
Notifications
You must be signed in to change notification settings - Fork 56
Project references #24
Comments
Are there any updates on this functionality? It would be very helpful for testing to be able to use Python/Jupyter notebooks during the development process. Thanks! |
@glassnotes this is still very much on the radar, just not something we've found time to do yet. Note that you can already use Python/Jupyter notebooks to develop with Q#. Currently all of your .qs source files must live in the same folder as the .py/.ipynb file you're working with. When loading the IQ# kernel (i.e., either when starting a Q# notebook, or running |
So if I can add some more context to what @glassnotes was was saying we are working on developing a library for Q# here: qRAM. For nuget packaging purposes, we have the source for the library in a separate directory from the samples which is what @glassnotes was working on at the time. We can use the Basically tl;dr it would be nice to have feature parity between using Python as a host and using a C# host as most of my academic colleagues use Python. |
Woooo this is On Deck!!! 💖💖💖 |
@crazy4pi314, glad you're excited about it! I've put some details about the proposed implementation in the initial PR #233. Any feedback or suggestions are more than welcome, either here or in the PR. |
Is your feature request related to a problem? Please describe.
Similar to the current
%package
magic in IQ# (exposed asqsharp.packages
in the Python client), it would be nice to have a%project
magic that adds a reference to a.csproj
file containing Q# code.This would make it easier to use Visual Studio or Visual Studio Code intelliSense features with Python hosts by providing the appropriate information to the language server about Q# compilation units.
This feature would also make it easier to package Q# code along with Python hosts without having to depend on assumptions about the current working directory.
Describe the solution you'd like
A magic command of the form
%project ../path/to/project.csproj
would cause the following to occur:project.csproj
would be added as a project reference to the current IQ# session.project.csproj
is not up to date, it would be rebuilt and its build artifact (assembly) added as a reference to all future snippets.%workspace reload
, referenced projects would be rebuilt if out-of-date.The text was updated successfully, but these errors were encountered: