Python Forum
Matrix Operations Without Numpy or Incorporating Python into Webpage
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Matrix Operations Without Numpy or Incorporating Python into Webpage
#1
Hi. I'm planning on using GlowScript, a program for creating 3D animations where you can write code in Python which is then converted to JavaScript for a webpage. It unfortunately does not allow you to import numpy. I would need several matrix operations for the project: matrix concatenation, matrix multiplication and division, and computing eigenvalues and eigenvectors. I was thinking it should be possible to write code for these operations myself, or even just copy the code from numpy. ( How feasible do you think this would be, and are there any alternatives?

Another option would be to use VPython, which is I think the same as GlowScript but doesn't allow for conversion to JavaScript. Does anyone know whether it's possible to incorporate Python code into a webpage?

Thanks!
Reply
#2
Last question first - yes, look at Flask, or if you have a bigger project Django.

You can do all the matrix math without numpy, but you need to know how to do it. For example, matrix multiplication can be sorted at https://www.programiz.com/python-program...ply-matrix
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Python Script to generate SVG Dot Matrix Pattern for LED Light Guide iamrickm 2 709 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  Check if two matrix are equal and of not add the matrix to the list quest 3 778 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  Replicate Excel operations with Python Lumberjack 3 1,772 May-10-2022, 01:44 AM
Last Post: Lumberjack
  Numpy error while filling up matrix with Characters august 4 1,799 Apr-13-2022, 10:28 PM
Last Post: august
  Create a 2-channel numpy file from two cvs file containing a 9x9 matrix silvialecc 1 1,616 Oct-26-2021, 07:59 AM
Last Post: Gribouillis
  Use Python to change a PHP file on my little webpage Pedroski55 0 1,481 Aug-28-2021, 12:42 AM
Last Post: Pedroski55
  Program demonstrates operations of bitwise operators without using bitwise operations ShawnYang 2 1,757 Aug-18-2021, 03:06 PM
Last Post: deanhystad
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 3,303 May-03-2021, 06:30 AM
Last Post: Gribouillis
  NumPy Matrix help ntailor97 1 1,786 Apr-08-2021, 03:23 AM
Last Post: ntailor97
  Random Choice Operations Souls99 6 2,889 Jul-31-2020, 10:37 PM
Last Post: Souls99

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020