Comandos y paquetes de Python compatibles#

Comandos básicos#

Todos los comandos, funciones, constantes, tipos y excepciones integrados en Python 3.8 se pueden utilizar en VEXcode VR.

Referencias:

También se admiten componentes principales como operaciones de cadenas, expresiones regulares y ajuste de texto.

Referencias:

Available Packages#

The following packages are fully supported and can be imported into VEXcode VR so they can be used in coding projects. To do so, use the keyword import followed by the name of the package you want to import at the beginning of your coding project.

Paquetes compatibles:

Preferred Installer Program (PIP) and micropip#

It is not possible to use PIP to install packages to VEXcode VR due to it being based entirely within the web browser. You can use micropip to import packages written purely in Python, but the packages will not work if they attempt to access hardware or use other unsupported features.

Debido a la cantidad de paquetes disponibles, no podemos proporcionar una lista de qué paquetes funcionarán en VEXcode VR.

import micropip

def main():
   # Tell micropip to install the "snowballstemmer" package.
   await micropip.install('snowballstemmer')
   # Now that "snowballstemmer" is installed, we can import the
   # package.
   import snowballstemmer
   # Use the package to find the stems of the words and print
   # them.
   stemmer = snowballstemmer.stemmer('english')
   brain.print(stemmer.stemWords('go goes going gone'.split()))

vr_thread(main)

Known Unsupported Features / Packages#

Ejecución concurrente#

The native Python options for concurrent execution are not supported in VEXcode VR. This is due to security features in the browser and other web technologies used with VEXcode to prevent malicious access to your computer. VEXcode instead uses the vr_thread command to create a simplified thread for running things concurrently.

Grupos de paquetes no admitidos#

There are many Python packages that can be imported using the import keyword, but will not be supported in VEXcode VR.

Grupos de paquetes de Python no compatibles con VEXcode VR:

  • Comunicación del sistema de archivos o de la aplicación externa.

  • Comunicación en red o entre procesos.

  • Paquetes que requieren gráficos.

  • Paquetes de visualización o reproducción multimedia.

  • Paquetes, excepto micropip, para importar otros paquetes.

  • Paquetes específicos del sistema operativo o aquellos que alteran la configuración del sistema operativo.

  • Paquetes de tiempo de ejecución de Python.

  • Paquetes dedicados a administrar o crear paquetes de Python y herramientas de desarrollo.