Learn to use Jupyter Notebook and Command Line Interfaces!
My friends and I created a Jupyter Notebook and CLI Guide to help beginners get started with these important data/computer science tools. Any feedback welcome!
/r/JupyterNotebooks
https://redd.it/ulsszh
My friends and I created a Jupyter Notebook and CLI Guide to help beginners get started with these important data/computer science tools. Any feedback welcome!
/r/JupyterNotebooks
https://redd.it/ulsszh
reddit
Learn to use Jupyter Notebook and Command Line Interfaces!
My friends and I created a [Jupyter Notebook and CLI Guide](https://aryaapai.github.io/star_command_website/) to help beginners get started with...
Replace bash scripts with iPython ...scripts?
I recently discovered the joy of using iPython for all of my bash needs, but want to fully transition form using the terminal. Is there a way I can execute bash statements in a python script using the iPython "!sudo ___" syntax or similar? Thanks!
/r/IPython
https://redd.it/uj87m9
I recently discovered the joy of using iPython for all of my bash needs, but want to fully transition form using the terminal. Is there a way I can execute bash statements in a python script using the iPython "!sudo ___" syntax or similar? Thanks!
/r/IPython
https://redd.it/uj87m9
reddit
Replace bash scripts with iPython ...scripts?
I recently discovered the joy of using iPython for all of my bash needs, but want to fully transition form using the terminal. Is there a way I...
Learning Python and Flask. Major milestone completed on my personal web project. So much more to do. Welcome any feedback.
https://www.mooie.me/race
/r/flask
https://redd.it/um90cj
https://www.mooie.me/race
/r/flask
https://redd.it/um90cj
www.mooie.me
Race Predictor
Running, Run Calculator, Pace Calculator, Running Resources.
How do we pass a variable to include tag?
I have a bunch of html files with files names as id.html. I want to include one of the files in another html file depending on the value of id received from the route. I want to do something like this:
How do I achieve this?
/r/flask
https://redd.it/umdzoq
I have a bunch of html files with files names as id.html. I want to include one of the files in another html file depending on the value of id received from the route. I want to do something like this:
{% include 'files/{{ id }}.html' %}How do I achieve this?
/r/flask
https://redd.it/umdzoq
reddit
How do we pass a variable to include tag?
I have a bunch of html files with files names as *id.html.* I want to include one of the files in another html file depending on the value of *id*...
Kernel not connecting for jupyterhub deployed in Google cloud platform
https://stackoverflow.com/questions/72172770/jupyterhub-kernel-not-connecting-in-google-cloud-platform
/r/JupyterNotebooks
https://redd.it/ulvdny
https://stackoverflow.com/questions/72172770/jupyterhub-kernel-not-connecting-in-google-cloud-platform
/r/JupyterNotebooks
https://redd.it/ulvdny
Stack Overflow
Jupyterhub Kernel not connecting in Google Cloud Platform
I am using GKE for Jupyterhub deployment. I followed the step given in Documentation but I am facing kernel connection issue.
I am using Helm Chart version 1.2.
Jupyterhub version 1.5
I saw a similar
I am using Helm Chart version 1.2.
Jupyterhub version 1.5
I saw a similar
Is Jupyter Notebooks unreliable or am I good to hand in this project?
I have a final project for a class that I have used jupyter notebooks to complete. There are a lot of graphs and such in the notebook. When I get into the notebook and use "Run All" and run all of the cells it works, but if I go back in and run an individual cell it will crash.
Also, last night it worked perfectly fine when I did run all, but then this morning I did it and some of the cells crashed and I had to fix them.
It feels like sometimes things work in Jupyter notebooks and sometimes they don't, it is honestly really frustrating and makes me glad that I am taught more application development vs data science, because I can't imagine having to use Jupyter notebooks all the time.
I believe they crash because I change variables later on in the code, and when I run the individual cell again the variables have changed so it crashes, but I am not positive since sometimes it works and sometimes it does not.
If I run all and have all of the cells properly working and displaying their graphs will it appear that way when my professor looks at
/r/JupyterNotebooks
https://redd.it/ul8cbb
I have a final project for a class that I have used jupyter notebooks to complete. There are a lot of graphs and such in the notebook. When I get into the notebook and use "Run All" and run all of the cells it works, but if I go back in and run an individual cell it will crash.
Also, last night it worked perfectly fine when I did run all, but then this morning I did it and some of the cells crashed and I had to fix them.
It feels like sometimes things work in Jupyter notebooks and sometimes they don't, it is honestly really frustrating and makes me glad that I am taught more application development vs data science, because I can't imagine having to use Jupyter notebooks all the time.
I believe they crash because I change variables later on in the code, and when I run the individual cell again the variables have changed so it crashes, but I am not positive since sometimes it works and sometimes it does not.
If I run all and have all of the cells properly working and displaying their graphs will it appear that way when my professor looks at
/r/JupyterNotebooks
https://redd.it/ul8cbb
reddit
Is Jupyter Notebooks unreliable or am I good to hand in this project?
I have a final project for a class that I have used jupyter notebooks to complete. There are a lot of graphs and such in the notebook. When I get...
Dockerizing a Python Django Web Application
https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application
/r/django
https://redd.it/uo03m2
https://semaphoreci.com/community/tutorials/dockerizing-a-python-django-web-application
/r/django
https://redd.it/uo03m2
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/ukpqov
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/ukpqov
reddit
Sunday Daily Thread: What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
Large plots in Jupyter notebooks (in Windows)
I am doing some mapping/GIS work with Python, which leads to large plots. However, I can't seem to enlarge the plot area - at least vertically. I can't change the backend, as the only ones I seem to have available are
/r/JupyterNotebooks
https://redd.it/un4l5m
I am doing some mapping/GIS work with Python, which leads to large plots. However, I can't seem to enlarge the plot area - at least vertically. I can't change the backend, as the only ones I seem to have available are
backend_agg, backend_nbagg, backend_webagg_core. So: how do I install other backends? Or - how do I enlarge the plot area so that the entire plot is displayed; that is, without scroll bars? Thanks!/r/JupyterNotebooks
https://redd.it/un4l5m
reddit
Large plots in Jupyter notebooks (in Windows)
I am doing some mapping/GIS work with Python, which leads to large plots. However, I can't seem to enlarge the plot area - at least vertically. ...
Thursday Daily Thread: Python Careers, Courses, and Furthering Education!
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/unnmyf
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python education!
This thread is not for recruitment, please see r/PythonJobs or the thread in the sidebar for that.
/r/Python
https://redd.it/unnmyf
reddit
Thursday Daily Thread: Python Careers, Courses, and Furthering...
Discussion of using Python in a professional environment, getting jobs in Python as well as ask questions about courses to further your python...
2022 Python Language Summit
The Python Language Summit blogs just dropped: [https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit\_01678898482.html](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_01678898482.html)
There was a lot of focus on making Python faster this year, in a lot of different ways:
* [Optimising single-threaded code](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_2.html)
* Creating [a version of Python without the GIL](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-python_11.html)
* Enabling [multiple interpreters to run inside a single process](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-per.html)
* [Upstreaming async optimisations from Cinder](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_60.html)
* A proposal for [lazy imports](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit.html)
There's also coverage on [immortal objects](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_11.html), [f-strings in the grammar](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-f.html), [dealing with the issue/PR backlog](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-dealing.html), and [Python in the browser](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-python.html).
/r/Python
https://redd.it/unx80h
The Python Language Summit blogs just dropped: [https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit\_01678898482.html](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_01678898482.html)
There was a lot of focus on making Python faster this year, in a lot of different ways:
* [Optimising single-threaded code](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_2.html)
* Creating [a version of Python without the GIL](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-python_11.html)
* Enabling [multiple interpreters to run inside a single process](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-per.html)
* [Upstreaming async optimisations from Cinder](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_60.html)
* A proposal for [lazy imports](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit.html)
There's also coverage on [immortal objects](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_11.html), [f-strings in the grammar](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-f.html), [dealing with the issue/PR backlog](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-dealing.html), and [Python in the browser](https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit-python.html).
/r/Python
https://redd.it/unx80h
Python Software Foundation Blog
The 2022 Python Language Summit: Performance Improvements by the Faster CPython team
Python 3.11, if you haven’t heard, is fast. Over the past year, Microsoft has funded a team – led by core developers Mark Shannon and Guid...
Which library is best for visualizing backend data generated by Django?
/r/django
https://redd.it/uo6mv0
/r/django
https://redd.it/uo6mv0
reddit
Which library is best for visualizing backend data generated by...
Posted in r/django by u/123IamAbcd • 3 points and 6 comments
Django Templates + React
I currently have a project that is a django-rest-api backend with a react/redux front end. I recently implemented "django-wiki" into my project and customized the cosmetics, this project uses django templates. Has anyone ever used django templates on one portion of the website and a different front end framework like react for another portion? I'm having difficulties syncing the login, in the react portion I use local storage to save the jwt for access and i'm not sure where to implement that on the django end so it flows to both portions of the project.
/r/djangolearning
https://redd.it/uo2jip
I currently have a project that is a django-rest-api backend with a react/redux front end. I recently implemented "django-wiki" into my project and customized the cosmetics, this project uses django templates. Has anyone ever used django templates on one portion of the website and a different front end framework like react for another portion? I'm having difficulties syncing the login, in the react portion I use local storage to save the jwt for access and i'm not sure where to implement that on the django end so it flows to both portions of the project.
/r/djangolearning
https://redd.it/uo2jip
reddit
Django Templates + React
I currently have a project that is a django-rest-api backend with a react/redux front end. I recently implemented "django-wiki" into my project...
Didn't get the job, code review please
Hey all,
Recently I applied for a junior backend position and was sent this assignment:
>Create a REST API for cars. It should contain accounts, CarBrand, UserCar, and CarModels. Each user has to be extended by default Django abstract class and should contain a few more columns (for your choice). Each car object contains relations to the user and CarBrand. Each CarModel contains relation to CarBrand. It is all your decision how you will distribute models to different apps. Please make the API URLs with filters (custom typed). All models should be with soft delete.
>
>Models fields:
CarBrand [name, created_at, deleted_at\]
CarModel [car_brand, name, created_at, update_at\]
UserCar [user, car_brand, car_model, first_reg, odometer, created_at, deleted_at\]
>
>Auth:
Please extend the default Django user class and add some custom fields. Create login, register functionality. User default Django permission classes.
I sent this code:
https://github.com/todortoshev/cars-api
https://carsapp.pythonanywhere.com/cars/all/
"User default Django permission classes." - I assumed this applies to django.contrib.auth in INSTALLED_APPS, so I didn't add permissions in settings.REST_FRAMEWORK.
The assignment also says CarModel has to have a field 'update_at', but doesn't mention 'deleted_at', so I left in 'update_at' and added 'deleted_at', as all models must have soft delete.
/r/django
https://redd.it/uo8gz4
Hey all,
Recently I applied for a junior backend position and was sent this assignment:
>Create a REST API for cars. It should contain accounts, CarBrand, UserCar, and CarModels. Each user has to be extended by default Django abstract class and should contain a few more columns (for your choice). Each car object contains relations to the user and CarBrand. Each CarModel contains relation to CarBrand. It is all your decision how you will distribute models to different apps. Please make the API URLs with filters (custom typed). All models should be with soft delete.
>
>Models fields:
CarBrand [name, created_at, deleted_at\]
CarModel [car_brand, name, created_at, update_at\]
UserCar [user, car_brand, car_model, first_reg, odometer, created_at, deleted_at\]
>
>Auth:
Please extend the default Django user class and add some custom fields. Create login, register functionality. User default Django permission classes.
I sent this code:
https://github.com/todortoshev/cars-api
https://carsapp.pythonanywhere.com/cars/all/
"User default Django permission classes." - I assumed this applies to django.contrib.auth in INSTALLED_APPS, so I didn't add permissions in settings.REST_FRAMEWORK.
The assignment also says CarModel has to have a field 'update_at', but doesn't mention 'deleted_at', so I left in 'update_at' and added 'deleted_at', as all models must have soft delete.
/r/django
https://redd.it/uo8gz4
GitHub
GitHub - TodorToshev/cars-api
Contribute to TodorToshev/cars-api development by creating an account on GitHub.
How can I make my test so they don't use other tests?
I am testing APIs using APITestCase. For example, I do a test to make a post request to create an instance in the model A, model B has model A as foreign key. If I execute my tests, it gave me an error in the second test saying that model A does not exist, so the easy solution would be to call the test that creates the instance in model A so model B can use it to execute the test but model A would execute two times. I don't think this is correct because if model C needs an instance of model A and B, I would need to add the test where model A and B are created, but that gave me an error because the test of model A would execute 3 times. So what do I do? I create the instance of model A assuming that test will create an instance of model B, but again, I don't think this is correct because it will make a snowball of tests.
class test_A(APITestCase):
def test_post_request(self):
/r/django
https://redd.it/uoasa3
I am testing APIs using APITestCase. For example, I do a test to make a post request to create an instance in the model A, model B has model A as foreign key. If I execute my tests, it gave me an error in the second test saying that model A does not exist, so the easy solution would be to call the test that creates the instance in model A so model B can use it to execute the test but model A would execute two times. I don't think this is correct because if model C needs an instance of model A and B, I would need to add the test where model A and B are created, but that gave me an error because the test of model A would execute 3 times. So what do I do? I create the instance of model A assuming that test will create an instance of model B, but again, I don't think this is correct because it will make a snowball of tests.
class test_A(APITestCase):
def test_post_request(self):
/r/django
https://redd.it/uoasa3
reddit
How can I make my test so they don't use other tests?
I am testing APIs using APITestCase. For example, I do a test to make a post request to create an instance in the model A, model B has model A as...
My math high school project
Hello,
The project is full of shit and is so incomplete. Despite that, I feel it is interesting enough to share it here! https://github.com/salastro/math-expert
Thanks for the time.
/r/Python
https://redd.it/uo3318
Hello,
The project is full of shit and is so incomplete. Despite that, I feel it is interesting enough to share it here! https://github.com/salastro/math-expert
Thanks for the time.
/r/Python
https://redd.it/uo3318
GitHub
GitHub - salastro/math-expert: Incomplete easy-to-use math solver and PDF generator.
Incomplete easy-to-use math solver and PDF generator. - salastro/math-expert
Core dev on why new Memray memory profiler tracks both Python and native code
https://devclass.com/2022/05/12/core-dev-memray-memory-profiler/
/r/Python
https://redd.it/uo70nv
https://devclass.com/2022/05/12/core-dev-memray-memory-profiler/
/r/Python
https://redd.it/uo70nv
DEVCLASS
Memray
An interview with one of the devs for a new open source memory profiler for Python that looks looks set for rapid adoption
DjangoCon US 2022 Talk Call for Proposals (CFP) is open! (closes on 10 June 2022)
https://pretalx.com/djangocon-2022/cfp
/r/django
https://redd.it/uoccnn
https://pretalx.com/djangocon-2022/cfp
/r/django
https://redd.it/uoccnn
Pretalx
DjangoCon US 2022
Schedule, talks and talk submissions for DjangoCon US 2022
SQLAlchemy classes from a pre-existing schema
I have .SQL files of the schema and I need to convert them into SQLAlchemy classes (not trying to create all table classes manually). Can I convert the schema into an sqlite db and then use that db to automap into SQLAlchemy table classes? Is there a better way directly using a schema ?
/r/flask
https://redd.it/uol1vj
I have .SQL files of the schema and I need to convert them into SQLAlchemy classes (not trying to create all table classes manually). Can I convert the schema into an sqlite db and then use that db to automap into SQLAlchemy table classes? Is there a better way directly using a schema ?
/r/flask
https://redd.it/uol1vj
Reddit
r/flask on Reddit: SQLAlchemy classes from a pre-existing schema
Posted by u/helllomelllo - 6 votes and 2 comments