Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Exterior editor possible? #41

Open

Description

@xarthurx

I was wondering if it is possible to write codes in an exterior editor like vim or emacs? The original editor is quite not friendly to use.

Activity

  1. piac commented on Jul 4, 2012

    @piac
    Member

    My main suggestion at present would be to write the code in a file, and run it with the RunPythonScript command. Make sure not to use any user-interface related commands, such as GetObject() or TurnOnGrips, as they are not usable within a pure-functional environment such as Grasshopper. When the code is done and testes, I'd suggest to move it to the component. There are alternatives, such as importing external modules, etc. Changing the editor altogether appears to be a titanic effort (all the interop, etc) but it would actually be possible, just very low in the list of priorities.
    SharpDevelop is already the suggested way to edit Windows Forms: http://python.rhino3d.com/threads/483-Sharpdevelop-for-Windows-Forms

  2. piac commented on Oct 23, 2013

    @piac
    Member

    @ManiuX : how would you envision this to happen? Should it just be possible to create .Net .dlls and load them in Grasshopper?

  3. xarthurx commented on Oct 26, 2013

    @xarthurx
    Author

    @piac Yes, probably.

  4. piac commented on Oct 28, 2013

    @piac
    Member

    @ManiuX Which IDE are you using the most? (We all have preferences and I'd have to start somewhere looking how they provide external editing).

    Also, I do not think that a simple text editor will help, and I did not write the editor that is currently used in ghPython. However, I might be able to help a bit in some specific areas if you could help me highlighting key problematic features.

    Thanks for both things!

  5. xarthurx commented on Nov 4, 2013

    @xarthurx
    Author

    @piac I used to use Emacs. But I'm now reading my Master degree so that I do not write python code very often. I think it'll be much better if you could propose a vote on rhino python forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions