Isaac Gym Python Stubs for Code Completion
Project description
Isaac Gym Python Stubs for Code Completion
Enable code completion for IsaacGym simply with pip install isaacgym-stubs
, even without IsaacGym itself!
# Install from PyPi
pip3 install isaacgym-stubs
# Alternatively, install from Github
# pip3 install git+https://github.com/yzqin/isaacgym-stubs.git
Begin your code with the typical from isaacgym import gymapi
and enjoy auto-completion.
The magic of stub
is that you even do not need to pip install IsaacGym itself.
For example, you may want to run IsaacGym on server but develop the code on a MacBook. IsaacGym may not support Mac. But you can still install this repo on MacBook and get smooth code completion during development!
Demo
VsCode
PyCharm
Troubleshooting
- The Python interpreter specified in your IDE should be the Python where isaacgym-stubs is installed. For example, if you install this repository with conda Python but select the system Python as the interpreter in your IDE, you won't have any code auto-completion. Follow the official instruction here for VSCode and here for PyCharm.
- Code auto-completion will not function if there's a directory named
issacgym
in your workspace. In this case, the isaacgym symbol in your import will point to the directory instead of this package, disrupting the auto-completion. Ensure that there's noisaacgym
directory in your IDE workspace. - Depending on which IDE you are using, sometimes you may need to restart the IDE after
pip install
for re-indexing.
Overview
This repository contains the pyi
stub for the IsaacGym library, which can be used for code completion and type
checking.
According to the guidelines outlined in PEP-561, Python stub files contain only
type information and no runtime code.
The stub
in this repo is generated based on IsaacGym version 1.0rc4
.
How to Generate This pyi
See here for more explanation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file isaacgym_stubs-1rc2.tar.gz
.
File metadata
- Download URL: isaacgym_stubs-1rc2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2b8e0097d662b5ff8e34e06f2bb4c40fc17d05e28a07c88038c49c33b7e7a43 |
|
MD5 | 0cb983d2eca2c31019454625346bfc28 |
|
BLAKE2b-256 | b0292e0844b61a244b90821e12f024f037172ff6f425772ee888be37291b6d24 |
File details
Details for the file isaacgym_stubs-1.0rc2-py3-none-any.whl
.
File metadata
- Download URL: isaacgym_stubs-1.0rc2-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ba656e59d71fd682572441440a30964332eb5f808060fe0e19b34a126bcca5 |
|
MD5 | 433a670f15f1b18be9b205fbff320519 |
|
BLAKE2b-256 | 76a3edb221add10d6bb2eef890a3f29e64c51ee6c882e3c85263961842717d0f |