-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix command-line engine start up guide #3304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
dstrain115
commented
Sep 9, 2020
- Fix list bulleting
- Fix printing URL to use job_id and program_id
- Fix list bulleting - Fix printing URL to use job_id and program_id
docs/tutorials/google/start.ipynb
Outdated
" \"programs{}?mods=quantum_ng2&project={}\".format(\n", | ||
" job.job_resource_name.split('/programs')[1], project_id))\n", | ||
" f\"programs/{job.program_id}/jobs/{job.job_id}\"\n", | ||
" f\"/overview?project={project_id}\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should put the URL-construction into an easily discoverable function somewhere. WDYT?
(Out of scope for this PR.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's a good idea. I'll add it to my TODOs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #3305.
docs/tutorials/google/start.ipynb
Outdated
" print(\"Scheduled. View the job at: https://console.cloud.google.com/quantum/\"\n", | ||
" \"programs{}?mods=quantum_ng2&project={}\".format(\n", | ||
" job.job_resource_name.split('/programs')[1], project_id))\n", | ||
" f\"programs/{job.program_id}/jobs/{job.job_id}\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: shouldn't you keep the old indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this basically the same indentation? I just changed it to a f string instead of the format. Or do you think I should indent so the f is under the quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think under the quotes. The number of spaces should stay fixed :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.