Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Remote python session #32

Open
Open

Description

@kdeu

Hello -

Is there any way that I could configure LT to connect to a remote python session? Working with LT (0.7.2) on Windows 7, but developing over ssh to a unix server where my python lives.

Thanks!

Activity

  1. kenny-evitt commented on Aug 15, 2015

    @kenny-evitt

    @kdeu I'm sure there's some way to do this; I just don't know how exactly.

    Would you do some research on this?

    This code seems pertinent:

        if '--profile' in s:
            k,p = s.split('--profile')
            k = k.lstrip().rstrip() # kernel part of the string
            p = p.lstrip().rstrip() # profile part of the string
            fullpath = find_connection_file(k,p)
        else:
            fullpath = find_connection_file(s.lstrip().rstrip())
    
        km = KernelManager(connection_file = fullpath)
        km.load_connection_file()
        kc = km.client()
        kc.start_channels()
        send = kc.shell_channel.execute
        return km
    
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