Free Terminals for everyone
Displays a terminal for Google Colab
pip install google-colab-shell
# import the module once
from google_colab_shell import getshell
## Anytime you want to open a terminal
getshell()
getshell(height=400) # custom height of the terminal
IMPORTANT: Make sure getshell
is the last command in the cell.
Displays a terminal for Google Colab. <3 Google
Make sure this is the last command in the cell.
Parameters
----------
height : int, default 400
Height of the rendered terminal
Returns
-------
IPython.display.HTML
Displays the terminal
Examples
--------
>>> getshell()
>>> getshell(height=400)
You can give me a small 🤓 dopmaine 🤝 support by ⭐STARRING⭐ this project
Kuldeep Singh Sidhu
Github: github/singhsidhukuldeep
https://github.com/singhsidhukuldeep
Website: Kuldeep Singh Sidhu (Website)
http://kuldeepsinghsidhu.com
LinkedIn: Kuldeep Singh Sidhu (LinkedIn)
https://www.linkedin.com/in/singhsidhukuldeep/
The full list of all the contributors is available here
- Add streaming of the output to have wider range of uses
- Detach the terminal to be async with other cells
- Set-up tests for edge cases and changes verification
- Set-up CI/CD pipleine (possibly using GitHub actions) to publish changes to PyPi
- Improeve the doc-strings documentation to add more explanantion and examples
- Find possibility to fetch output without locking the cell
If this helped you in any way, it would be great if you could share it with others.
pip3 install setuptools twine
- Go to project folder
python3 setup.py sdist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
OR
Go to your project folder and:
pip3 install setuptools twine
python3 setup.py sdist
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*