InfuseAI / colab-xterm

Open a terminal in colab, including the free tier.
Apache License 2.0
359 stars 32 forks source link

Allow user to set height and port from magic line command #11

Closed milochen0418 closed 1 year ago

milochen0418 commented 1 year ago

We can use the following magic line command to set up the height of the cell, and so do the port.

%xterm height=300 port=10001

The following YouTube shows how it works (Select 1440p) https://www.youtube.com/watch?v=0eRO0xNzJ-s

This PR is also related to this issue

milochen0418 commented 1 year ago

Thanks for your PR. Some minor adjustments need to be made.

@popcornylu Thanks for your excellent suggestion and your help. I already improved it in the latest commit. Please review it again.