ubsuny / CP1-24-HW1

Homework template for CP1 in 2024
1 stars 17 forks source link

Referencing a line of code in a comment #41

Closed ojha-aditya closed 2 months ago

ojha-aditya commented 2 months ago

Could anyone discuss again how to reference a line of code from our own codespace to any comment or an issue?

I guess a trivial way would be to copy-paste it mentioning python but isn't there a more direct way to do so?

p-pxmpo commented 2 months ago

I figured it our just now, go to the code and the line you are trying to reference, click on the line number and 3 dots should appear on the left side, click that then click COPY PERMALINK then paste it on your conmnent / issue.

ojha-aditya commented 2 months ago

Is it also the same for codespaces? I am using the codespace Jupyter notebook and do not see this somehow!

laserlab commented 2 months ago

You can check https://github.com/ubsuny/CP1-24-HW1/issues/4#issue-2529191344 how it is done there. If you’re looking for a GUI solution you might check if https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github provides something like it

ojha-aditya commented 2 months ago

Thank you @laserlab I will look into it. Closing the issue for now.

Additionally, is the issue about Python 3.12.6 not working for qiskit closed? I can not seem to find, that is actually where I wanted to reference the error while importing ice cream in 3.9.2.

laserlab commented 2 months ago

See #45

ojha-aditya commented 2 months ago

Got it. I guess there is no need to reference the error message anymore if there is a temporary workaround as discussed in #45.