Skip to content
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

docs: tutorial/introduction doesn't mention toggle of prompts #78632

Closed
jfine2358 mannequin opened this issue Aug 21, 2018 · 9 comments
Closed

docs: tutorial/introduction doesn't mention toggle of prompts #78632

jfine2358 mannequin opened this issue Aug 21, 2018 · 9 comments
Labels
3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir easy type-feature A feature request or enhancement

Comments

@jfine2358
Copy link
Mannequin

jfine2358 mannequin commented Aug 21, 2018

BPO 34451
Nosy @rhettinger, @encukou, @miss-islington, @RJ722, @jfine2358, @davidmrdavid, @dhoekstra2000, @thmsdnnr
PRs
  • bpo-34451: Document prompt and output toggle feature in html tutorial #27105
  • [3.10] bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) #29119
  • [3.9] bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) #29120
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-11-23.15:44:04.759>
    created_at = <Date 2018-08-21.18:50:18.611>
    labels = ['easy', '3.8', '3.9', '3.10', 'type-feature', 'docs']
    title = "docs: tutorial/introduction doesn't mention toggle of prompts"
    updated_at = <Date 2021-11-23.15:44:04.758>
    user = 'https://github.com/jfine2358'

    bugs.python.org fields:

    activity = <Date 2021-11-23.15:44:04.758>
    actor = 'petr.viktorin'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-11-23.15:44:04.759>
    closer = 'petr.viktorin'
    components = ['Documentation']
    creation = <Date 2018-08-21.18:50:18.611>
    creator = 'jfine2358'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34451
    keywords = ['patch', 'easy']
    message_count = 9.0
    messages = ['323839', '381920', '381928', '384472', '393105', '402262', '404581', '404593', '404594']
    nosy_count = 9.0
    nosy_names = ['rhettinger', 'petr.viktorin', 'docs@python', 'miss-islington', 'RJ722', 'jfine2358', 'davidmrdavid', 'dhoekstra', 'thmsdnnr']
    pr_nums = ['27105', '29119', '29120']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue34451'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    @jfine2358
    Copy link
    Mannequin Author

    jfine2358 mannequin commented Aug 21, 2018

    Interactive code examples need the prompt to be stripped, before copy-and-paste. This is explained in https://docs.python.org/3/tutorial/introduction.html

    But this page does not tell us about the [>>>] prompt-toggle at top of each interactive code example. This caused a user error, reported in https://mail.python.org/pipermail/python-ideas/2018-August/052869.html.

    The [>>>] toggle isn't in the Python 2.7 docs, so nothing to fix there!

    @jfine2358 jfine2358 mannequin added 3.7 (EOL) end of life 3.8 only security fixes labels Aug 21, 2018
    @jfine2358 jfine2358 mannequin assigned docspython Aug 21, 2018
    @jfine2358 jfine2358 mannequin added the docs Documentation in the Doc dir label Aug 21, 2018
    @iritkatriel iritkatriel added easy 3.9 only security fixes 3.10 only security fixes type-feature A feature request or enhancement and removed 3.7 (EOL) end of life labels Nov 26, 2020
    @rhettinger
    Copy link
    Contributor

    The toggle option is only in the HTML version with javascript enabled. It would apply to PDF renderings or CHM files etc.

    @rhettinger
    Copy link
    Contributor

    • It would apply to PDF renderings or CHM files etc.
      + We wouldn't the the proposed text to be visible in PDF renderings or CHM files etc.

    @davidmrdavid
    Copy link
    Mannequin

    davidmrdavid mannequin commented Jan 6, 2021

    Hi folks! I'm interested in contributing to this issue, but I'm unsure about the context.

    Can >>>> prompts be toggled on-and-off in the docs? I do not see that option. I read that this is possible in javascript-enabled versions of the site, but isn't that the default? If so, I have JS enabled and I do not see how to toggle them out :) . Maybe that's part of what we need to fix as well.

    Thanks for your time!

    @dhoekstra2000
    Copy link
    Mannequin

    dhoekstra2000 mannequin commented May 6, 2021

    Hi David! There is a button marked '>>>' in the top right corner of code blocks with Interactive code examples. This toggles between the interaction as it would appear in a terminal and a mode where only the input is listed without the '>>>'.

    See for example the second block on https://docs.python.org/3/tutorial/introduction.html

    @thmsdnnr
    Copy link
    Mannequin

    thmsdnnr mannequin commented Sep 20, 2021

    I added a pull request to attempt to fix this issue. It received a label but no review and has gone stale, so I am sending out a ping.

    @encukou
    Copy link
    Member

    encukou commented Oct 21, 2021

    New changeset 5a14f71 by Thomas in branch 'main':
    bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)
    5a14f71

    @encukou
    Copy link
    Member

    encukou commented Oct 21, 2021

    New changeset 00ddc1f by Miss Islington (bot) in branch '3.10':
    bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29119)
    00ddc1f

    @encukou
    Copy link
    Member

    encukou commented Oct 21, 2021

    New changeset bfa4237 by Miss Islington (bot) in branch '3.9':
    bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29120)
    bfa4237

    @encukou encukou closed this as completed Nov 23, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes 3.10 only security fixes docs Documentation in the Doc dir easy type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants