r/pythonhelp • • Jun 22 '21

How do I add a Python project to a webpage?

Hello all, I’m trying to add a Python project I finished a week ago to my portfolio webpage and am having a hard time doing so. The website will only accept ipynb files in terms of coding. I managed to get the file and post it, but when I try to play it it doesn’t work. What else can I do? Thanks for your help.

3 Upvotes

6 comments sorted by

1

u/chrisking206 Jun 23 '21

Could you clarify what you are trying to do? When I think of adding a project to portfolio page, I would create a GitHub account, push the project there, and a share a link to it in my portfolio. Are you trying something different than that?

1

u/mynameizham Jun 23 '21

Thanks for answering! I created a game and wanted the user to be able to play it right on the webpage while I had the directions written on how to play right next to it.

1

u/chrisking206 Jun 23 '21

Nice. Ok and do you intend to have a server hosting the game or would it run client side only? If you are hosting on a web server you might look into frameworks like django or flask.

1

u/[deleted] Jun 23 '21

[removed] — view removed comment

1

u/mynameizham Jun 23 '21

Could I convert the Python code I already have into JavaScript? Is there like a copy and paste site for that?