Code Monkey home page Code Monkey logo

hydrogen-python's Introduction

๐Ÿ“ฆ Python language-specific extensions for Hydrogen

Features:

Compatibility:

  • Hydrogen version 2.3.0 or later
  • Variable explorer has only been tested to work with Python 3.5 or later. Pull requests to add Python 2 support are welcome.

Feature: Strip common leading whitespace

Lets you select and run code blocks that are indented (e.g. inside a function). No configuration needed.

Example:

def foo():
    x = 1
    print('x is', x)
    # Select the above two lines and run them with Hydrogen!

Limitations

Does not work if the first line ends in : and you have a comment after, i.e.

if True: # having a comment here breaks things
    print("This doesn't work!")

It also can have unexpected results if you select some code that is malformed to begin with, e.g.

x = 1
    print("x is", x) # This works even though it shouldn't

(Pull requests are welcome to fix the first issue; the second probably can't be fixed without changing the Hydrogen package)

Feature: Variable Explorer

Activate using the "Hydrogen Python: Toggle Variable Explorer" command.

This feature is currently in proof-of-concept status. Please file an issue about any functionality you want to have in the variable exploror!

hydrogen-python's People

Contributors

nikitakit avatar

Watchers

John D. Pope avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.