omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    [Tip] adding screenshots to your code

    Pythonista
    tip screenshot
    3
    4
    3390
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Phuket2
      Phuket2 last edited by

      Maybe not a tip, but more like the obvious. But it's pretty easy to add screenshots to your code via a link. Yeah, it's obvious, but I don't remember seeing anyone doing it except in the forum.

      The below is just supposed to be dead simple. Just prints a link to the console, in this case a Dropbox link. If you click the link it the console it's automatically opened up in a panel.

      But it could be helpful for people to understand your code. Just an idea.

      _link = 'https://www.dropbox.com/s/vm96a9yngt10zx3/File%2010-08-2016%2C%2015%2034%2035.jpeg?dl=0'
      print(_link)
      
      1 Reply Last reply Reply Quote 2
      • ?
        A Former User last edited by

        At the end of the link it says dl=0 if you change it to dl=1 then just the image is displayed, not the dropbox website. This makes it easier to zoom into the screenshot. :)

        Phuket2 1 Reply Last reply Reply Quote 0
        • Phuket2
          Phuket2 @Guest last edited by

          @JosephBywater , yeah. I didn't test it, but I figured as much. I was trying to be as simple as can be. Just saying can annotate your code with some pics as links.

          But you taught me a great time saver. To post a pic here. I normally replace dl=0 with raw=True. From your example I can see just need to replace the dl=0 with dl=1. So much easier to do that for the forum. Thanks

          1 Reply Last reply Reply Quote 1
          • lukaskollmer
            lukaskollmer last edited by

            @JosephBywater you can also replace www with dl and remove the parameters altogether

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Powered by NodeBB Forums | Contributors