Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 support #121

Open
asmeurer opened this issue Jul 30, 2018 · 15 comments
Open

Python 3 support #121

asmeurer opened this issue Jul 30, 2018 · 15 comments

Comments

@asmeurer
Copy link
Member

We need to figure out how to get SymPy Live to support Python 3. I saw https://stackoverflow.com/questions/24229203/does-google-app-engine-support-python-3 but I couldn't figure out how to get it working.

SymPy will drop Python 2 support at the end of 2019, so we won't be able to update SymPy Live after that unless we get Python 3 working.

@thefreakingmind
Copy link

Hey Can I take this. is it resolved.

@asmeurer
Copy link
Member Author

No it hasn't been fixed yet.

@james-n-007
Copy link

is it fixed?

@prshnt19
Copy link
Contributor

@asmeurer @oscarbenjamin I want to work on this issue

@prshnt19
Copy link
Contributor

@asmeurer @oscarbenjamin I have made some changes and now SymPy Live supports Python3. I made it run on my localhost. I wanted to discuss about where to host it because the changes I made are very significant.
Link: http://160.50.70.34.bc.googleusercontent.com/
Id: test
pass: test9876

@asmeurer
Copy link
Member Author

Is it based on the changes here? I would start a pull request here. Even if there are a lot of changes, that is the best way to discuss them.

I played with your test instance a bit and it seems like quite a few things are broken. What I found so far

  • import sys does not work
  • x = 1 followed by x gives x.

@prshnt19
Copy link
Contributor

prshnt19 commented Feb 24, 2020

As python2 is not supported anymore and to use python3 on google AppEngine, we need to use a web framework, and I think Django will be better than Flask. I have deployed many web apps and have good experience in the same. I think using GoogleCompute Engine instead of AppEngine is better as it is more flexible and economic. I have been working on this for 15 days. I have used function-based views in Django and used inbuilt Django sessions for storing statements. It could be extended to sympy-gamma also. These changes may contain many bugs and work is still in progress. For now, I have fixed the import issue. Will work on the x=1 issue. I will make a PR as soon as I fix it.

But there is an issue. PR made by me will not get reflected on the simpy-live because it is hosted on AppEngine and my changes are for ComputeEngine. The reason for using ComputeEngine is mentioned at [Discussion] GSOC 2020: Python3 support for sympy-live.
Need to know what platform we are going to use.

Thanks

@asmeurer
Copy link
Member Author

Even if there is a significant rewrite we should keep the code in this repository. So even if there are a lot of changes it's good to do it in this repo and make a PR there. We can worry about deploying it later.

@prshnt19
Copy link
Contributor

Ok sure. I will make a PR.

@prshnt19
Copy link
Contributor

prshnt19 commented Mar 4, 2020

ping @asmeurer

@evan0greenup
Copy link

@asmeurer @certik what is the current progress of this issue?

@certik
Copy link
Member

certik commented Oct 12, 2021

I don't know what the progress is.

@evan0greenup
Copy link

@certik frankly speaking, if the online sympy shell can upgrade to Python 3 , and the sympy version can always stick to master branch daily. It would be really awesome.

In the classroom or laboratory, user have no administrator or superuser privilege, They can not install sympy locally, the online shell is essential to them.

What is the major difficulties to upgrade online shell?

@certik
Copy link
Member

certik commented Oct 12, 2021

You have to ask @asmeurer or @oscarbenjamin. I am not involved with the sympy-live much.

@oscarbenjamin
Copy link
Contributor

What is the major difficulties to upgrade online shell?

The major difficulty is that most of us are not web developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants