'jupyter notebook' command doesn't work...
I'm trying to read some documentation for a course, and that's entirely in Jupyter Notebook. There's this documentation here and the very course that tell me I should just type
PS W:\> jupyter notebook
usage: jupyter -h --version --config-dir --data-dir --runtime-dir --paths --json --debug subcommand
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
/r/JupyterNotebooks
https://redd.it/wm1lzw
I'm trying to read some documentation for a course, and that's entirely in Jupyter Notebook. There's this documentation here and the very course that tell me I should just type
jupyter notebook and it should run, but what I get instead is this:PS W:\> jupyter notebook
usage: jupyter -h --version --config-dir --data-dir --runtime-dir --paths --json --debug subcommand
Jupyter: Interactive Computing
positional arguments:
subcommand the subcommand to launch
options:
-h, --help show this help message and exit
--version show the versions of core jupyter packages and exit
--config-dir show Jupyter config dir
--data-dir show Jupyter data dir
--runtime-dir show Jupyter runtime dir
--paths show all Jupyter paths. Add --json for machine-readable
/r/JupyterNotebooks
https://redd.it/wm1lzw
Is it normal for old computer to get hot when running Anaconda?
I am using an old Thinkpad.
/r/JupyterNotebooks
https://redd.it/wjrpqj
I am using an old Thinkpad.
/r/JupyterNotebooks
https://redd.it/wjrpqj
reddit
Is it normal for old computer to get hot when running Anaconda?
I am using an old Thinkpad.
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/xwqis8
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/xwqis8
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...
I created a simple and fast Broken Link Checker for WordPress using Python
There aren't any reliable free broken link checkers out there, so I decided to create one. Right now, it is a Python script that can be run on any platform. It is multi-threaded and has a lot of room for improvement.
Feel free to check out the code and point out the mistakes or leave suggestions. I am newbie programmer :)
https://preview.redd.it/7acdqlgha6s91.png?width=736&format=png&auto=webp&s=8bcf2ed7631513e23736dc550b64d23a24d7077d
GitHub: Suleman-Elahi/WpBrokenCheck
/r/Python
https://redd.it/xx35wf
There aren't any reliable free broken link checkers out there, so I decided to create one. Right now, it is a Python script that can be run on any platform. It is multi-threaded and has a lot of room for improvement.
Feel free to check out the code and point out the mistakes or leave suggestions. I am newbie programmer :)
https://preview.redd.it/7acdqlgha6s91.png?width=736&format=png&auto=webp&s=8bcf2ed7631513e23736dc550b64d23a24d7077d
GitHub: Suleman-Elahi/WpBrokenCheck
/r/Python
https://redd.it/xx35wf
Jupyter Notebook Competition extended!
Good news 📢
We've extended the deadline for the Jupyter \#NotebookCompetition 👏
So, if you didn't sign up yet or needed more time to complete your Notebook, you now have until 4 September!
Visit: http://notebook.wekeo.eu for more info 💻
https://preview.redd.it/scnkf9t06of91.png?width=1920&format=png&auto=webp&s=e9e2a2c0475f75d5ff2f378ddeb2b90fbb393f1a
/r/JupyterNotebooks
https://redd.it/wfx55d
Good news 📢
We've extended the deadline for the Jupyter \#NotebookCompetition 👏
So, if you didn't sign up yet or needed more time to complete your Notebook, you now have until 4 September!
Visit: http://notebook.wekeo.eu for more info 💻
https://preview.redd.it/scnkf9t06of91.png?width=1920&format=png&auto=webp&s=e9e2a2c0475f75d5ff2f378ddeb2b90fbb393f1a
/r/JupyterNotebooks
https://redd.it/wfx55d
Linkedin
Sign Up | LinkedIn
500 million+ members | Manage your professional identity. Build and engage with your professional network. Access knowledge, insights and opportunities.
How to determinate if a number “n” belongs to the Fibonacci sequence?
/r/Python
https://redd.it/xxi1od
/r/Python
https://redd.it/xxi1od
reddit
How to determinate if a number “n” belongs to the Fibonacci sequence?
Posted in r/Python by u/Ju4npa2009 • 82 points and 56 comments
Is there a reason to separate api calls into their own url endpoints?
I started a project awhile back and have made a lot of progress since then. In the beginning I didn't think much about architecture and how I'd serve data to the frontend. Now, however, it seems the way I am doing so isn't exactly like other projects I see, so here is my question.
What are the main issues with having my views formatted in such a way that when the frontend makes a request, the main view receives it and calls a function based on the action argument, rather than the frontend calling a different url endpoint? Here is an example below...
**api.py**
def to_return_stuff(request):
posts = Posts.objects.filter(~Q(user=request.user), is_active=True).order_by('-creation_date').values_list('description', 'pay', 'location', 'creation_date', 'user__username', 'pk', 'coords', 'listing_type', 'image', 'name')
posts = [p for p in posts if match(p[6], some_coords)]
return json.dumps(posts)
**views.py**
def home(request):
# page initially loads, just serving the static html, then the frontend triggers a fetch request, triggering the populate case, which serves data to
/r/djangolearning
https://redd.it/xxvwe5
I started a project awhile back and have made a lot of progress since then. In the beginning I didn't think much about architecture and how I'd serve data to the frontend. Now, however, it seems the way I am doing so isn't exactly like other projects I see, so here is my question.
What are the main issues with having my views formatted in such a way that when the frontend makes a request, the main view receives it and calls a function based on the action argument, rather than the frontend calling a different url endpoint? Here is an example below...
**api.py**
def to_return_stuff(request):
posts = Posts.objects.filter(~Q(user=request.user), is_active=True).order_by('-creation_date').values_list('description', 'pay', 'location', 'creation_date', 'user__username', 'pk', 'coords', 'listing_type', 'image', 'name')
posts = [p for p in posts if match(p[6], some_coords)]
return json.dumps(posts)
**views.py**
def home(request):
# page initially loads, just serving the static html, then the frontend triggers a fetch request, triggering the populate case, which serves data to
/r/djangolearning
https://redd.it/xxvwe5
reddit
Is there a reason to separate api calls into their own url endpoints?
I started a project awhile back and have made a lot of progress since then. In the beginning I didn't think much about architecture and how I'd...
Jupyter notebook is slow
I don’t think it’s my PC’s problem because every other app/website works just fine.
It has gotten really bad to the point that it takes 10 minutes to run a simple csv file.
Any help?
/r/JupyterNotebooks
https://redd.it/wcnqus
I don’t think it’s my PC’s problem because every other app/website works just fine.
It has gotten really bad to the point that it takes 10 minutes to run a simple csv file.
Any help?
/r/JupyterNotebooks
https://redd.it/wcnqus
reddit
Jupyter notebook is slow
I don’t think it’s my PC’s problem because every other app/website works just fine. It has gotten really bad to the point that it takes 10...
Is this route okay to use?
QUESTION: Would I encounter any problem if I forward with these code below?
Right now it is working without any problem as far as I can see.
So here is my User model. The "paid" column's value will decide if the user can reach a specific page which is only available for the users that have paid the user fee.
class User(db.Model,UserMixin):
__tablename__='Users'id=db.Column(db.Integer,primary_key=True)
email=db.Column(db.String(50),unique=True,nullable=False)
password=db.Column(db.String(60),nullable=False)
paid=db.Column(db.Integer,default='0',nullable=False)
role_id = db.Column(db.Integer, db.ForeignKey('roles.id'))
Here it is one of my routes for activating user account . This route is for when the admin gets a payment notification from the user, the admin will go and activate the user account manually. So I put a basic checkbox and email section in the template. When the admin submit, it changes "paid" column to "1" or "0" to a particular user email address.
#ACTIVATE USER
@admin.route('/user_activate',methods=['GET','POST'])
@login_required
@is_admin()
def activate():
/r/flask
https://redd.it/xxx73l
QUESTION: Would I encounter any problem if I forward with these code below?
Right now it is working without any problem as far as I can see.
So here is my User model. The "paid" column's value will decide if the user can reach a specific page which is only available for the users that have paid the user fee.
class User(db.Model,UserMixin):
__tablename__='Users'id=db.Column(db.Integer,primary_key=True)
email=db.Column(db.String(50),unique=True,nullable=False)
password=db.Column(db.String(60),nullable=False)
paid=db.Column(db.Integer,default='0',nullable=False)
role_id = db.Column(db.Integer, db.ForeignKey('roles.id'))
Here it is one of my routes for activating user account . This route is for when the admin gets a payment notification from the user, the admin will go and activate the user account manually. So I put a basic checkbox and email section in the template. When the admin submit, it changes "paid" column to "1" or "0" to a particular user email address.
#ACTIVATE USER
@admin.route('/user_activate',methods=['GET','POST'])
@login_required
@is_admin()
def activate():
/r/flask
https://redd.it/xxx73l
reddit
Is this route okay to use?
QUESTION: Would I encounter any problem if I forward with these code below? Right now it is working without any problem as far as I can see. So...
only backend portfolio ideas with no front-end.
Hello everyone! Sorry if this is an OT, admins can remove it if it's unacceptable in this place. I am learning and getting good at flask. My question is, what are some only backend projects that does not require front-end and would be good for portfolio? The reason why I am asking this is not because I don't know html/css/javascript (in fact I know them as code very well), it's because I am blind and obviously, I can't do designs. Since I am good at programming and logic, backend seems a good fit. What I have looked up in the internet about the topic is to build some APIs. They don't require any front-end knowledge. This was as far as I could get with my searches. Other projects like shops, class management system, portfolio projects and etc, are of course requiring front-end. Taking a template and modifying it probably is not the option, because then you are limited with the features that you could add, for example in the class management system project. With only backend, you'd do unit/integration tests and showcase that your project works. but there is a lack of ideas, building is the next step.
sincerely and with
/r/flask
https://redd.it/xy5nbw
Hello everyone! Sorry if this is an OT, admins can remove it if it's unacceptable in this place. I am learning and getting good at flask. My question is, what are some only backend projects that does not require front-end and would be good for portfolio? The reason why I am asking this is not because I don't know html/css/javascript (in fact I know them as code very well), it's because I am blind and obviously, I can't do designs. Since I am good at programming and logic, backend seems a good fit. What I have looked up in the internet about the topic is to build some APIs. They don't require any front-end knowledge. This was as far as I could get with my searches. Other projects like shops, class management system, portfolio projects and etc, are of course requiring front-end. Taking a template and modifying it probably is not the option, because then you are limited with the features that you could add, for example in the class management system project. With only backend, you'd do unit/integration tests and showcase that your project works. but there is a lack of ideas, building is the next step.
sincerely and with
/r/flask
https://redd.it/xy5nbw
reddit
only backend portfolio ideas with no front-end.
Hello everyone! Sorry if this is an OT, admins can remove it if it's unacceptable in this place. I am learning and getting good at flask. My...
Running Jupyter lab/notebook fail
Hey y'all I was running jupyter notebook/lab just a few days ago and have suddenly run into an issue I can't resolve.
https://preview.redd.it/6ge5cg6fore91.png?width=2348&format=png&auto=webp&s=d92c0300b516632e0ce80402ddcbea5956635285
I'm getting the above error just trying to run jupyterlab or notebook within (and without) a virtualenv. I'm not aware of any package changes or anything since this was last working but something must have changed. Most of the advice I'm finding online is relatively old on this issue and revolve around downgrading markupsafe package from 2.1.1 to 2.0.1. I've tried this and it hasn't fixed the issue.
Another issue, when Lab/Notebook was working, was the autotab feature and shift+tab documentation feature were working in the beginning but became very slow or stopped working altogether. Most advice around this issue revolved around jedi upgrades/downgrades/changing jedi config setting to false. I feel like I exhausted all combinations.
Any thought on either of these two issue would be greatly appreciated.
/r/JupyterNotebooks
https://redd.it/wc6vze
Hey y'all I was running jupyter notebook/lab just a few days ago and have suddenly run into an issue I can't resolve.
https://preview.redd.it/6ge5cg6fore91.png?width=2348&format=png&auto=webp&s=d92c0300b516632e0ce80402ddcbea5956635285
I'm getting the above error just trying to run jupyterlab or notebook within (and without) a virtualenv. I'm not aware of any package changes or anything since this was last working but something must have changed. Most of the advice I'm finding online is relatively old on this issue and revolve around downgrading markupsafe package from 2.1.1 to 2.0.1. I've tried this and it hasn't fixed the issue.
Another issue, when Lab/Notebook was working, was the autotab feature and shift+tab documentation feature were working in the beginning but became very slow or stopped working altogether. Most advice around this issue revolved around jedi upgrades/downgrades/changing jedi config setting to false. I feel like I exhausted all combinations.
Any thought on either of these two issue would be greatly appreciated.
/r/JupyterNotebooks
https://redd.it/wc6vze
Im making a video editor in Python. Yes, i'm crazy. No, it wont lag
# Motive
I am making a video editor in Python due to a lack of free editors who have the features i want them to have, without needing a super beefy computer to run, I'm talking: keyframes, 3d animations, etc.
This was a spontaneus decision by me because a malaysian friend was forced to use kinemaster because his pcs have no more than a core 2 duo.
Why wont i use something else?
Because python is really easy to just get stuff working without making a ton of bullsh boilerplate just to move an image in 3d or paste and image on top of another.
# The backstory
There is a genre of videos called "crazy errors" they were quite popular back in 2011-2014, they involve error messages popping up in rythm to music, making it look like a virus (the video itself was most commonly made in a video editor like premiere or vegas pro). It most commonly featured IOSYS's "Marisa Stole the Precious Thing", although other songs could appear too.
It was near the end of 2020, back then I found out that windows93.net has a crazy error program. The difference is, is that the errors that popup, are actually interactive and are real windows
/r/Python
https://redd.it/xxrs6j
# Motive
I am making a video editor in Python due to a lack of free editors who have the features i want them to have, without needing a super beefy computer to run, I'm talking: keyframes, 3d animations, etc.
This was a spontaneus decision by me because a malaysian friend was forced to use kinemaster because his pcs have no more than a core 2 duo.
Why wont i use something else?
Because python is really easy to just get stuff working without making a ton of bullsh boilerplate just to move an image in 3d or paste and image on top of another.
# The backstory
There is a genre of videos called "crazy errors" they were quite popular back in 2011-2014, they involve error messages popping up in rythm to music, making it look like a virus (the video itself was most commonly made in a video editor like premiere or vegas pro). It most commonly featured IOSYS's "Marisa Stole the Precious Thing", although other songs could appear too.
It was near the end of 2020, back then I found out that windows93.net has a crazy error program. The difference is, is that the errors that popup, are actually interactive and are real windows
/r/Python
https://redd.it/xxrs6j
reddit
Im making a video editor in Python. Yes, i'm crazy. No, it wont lag
# Motive I am making a video editor in Python due to a lack of free editors who have the features i want them to have, without needing a super...
Unable to get value from render_template!
This is my main.html : [https://pastebin.com/794UYRrz](https://pastebin.com/794UYRrz)
and this is my [app.py](https://app.py) : [https://pastebin.com/68RXwiMc](https://pastebin.com/68RXwiMc)
​
Basically i want whenever i get a POST to update the textarea but it doesnt work..
i tried with fetch("/", {method: "POST"}) but whenever i get a post like that or one from dropzone, it doesnt return the values as true
/r/flask
https://redd.it/xyemzy
This is my main.html : [https://pastebin.com/794UYRrz](https://pastebin.com/794UYRrz)
and this is my [app.py](https://app.py) : [https://pastebin.com/68RXwiMc](https://pastebin.com/68RXwiMc)
​
Basically i want whenever i get a POST to update the textarea but it doesnt work..
i tried with fetch("/", {method: "POST"}) but whenever i get a post like that or one from dropzone, it doesnt return the values as true
/r/flask
https://redd.it/xyemzy
Pastebin
<!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> < - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Execute Notebook on remote kernel via cmd
Hi, I'm currently trying to run a remote notebook via command shell. I was able to connect to the remote kernel with the GatewayClient option and also could start my local notebooks on that kernel using the Browser. But I didn't find a way to use the established connection to execute a notebook using the command shell.
Can anybody help me with this? Either a way in python or directly via command prompt would be nice!
/r/JupyterNotebooks
https://redd.it/wcamn2
Hi, I'm currently trying to run a remote notebook via command shell. I was able to connect to the remote kernel with the GatewayClient option and also could start my local notebooks on that kernel using the Browser. But I didn't find a way to use the established connection to execute a notebook using the command shell.
Can anybody help me with this? Either a way in python or directly via command prompt would be nice!
/r/JupyterNotebooks
https://redd.it/wcamn2
reddit
Execute Notebook on remote kernel via cmd
Hi, I'm currently trying to run a remote notebook via command shell. I was able to connect to the remote kernel with the GatewayClient option and...
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xye4ru
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic?
Use this thread to chat about and share Python resources!
/r/Python
https://redd.it/xye4ru
reddit
Saturday Daily Thread: Resource Request and Sharing! Daily Thread
Found a neat resource related to Python over the past week? Looking for a resource to explain a certain topic? Use this thread to chat about and...
Is it just me or did the creators of the Python QT5 GUI library miss a golden opportunity to call the package QtPy?
/r/Python
https://redd.it/xykohy
/r/Python
https://redd.it/xykohy
reddit
Is it just me or did the creators of the Python QT5 GUI library...
Posted in r/Python by u/UpAllNate • 242 points and 44 comments
Colab/jupyter hub/google drive/github?
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The code is all fairly light. I'm just reading in data and graphing it. The notebook will be single-user.
The code runs significantly slower on google Colab than if I run them on my local machines, but nothing unbearable, and speed isn't a huge issue. That said, fast wall times are always better. I also haven't fully dug deep into Colab yet so IDK how it compares with standard jupyter in terms of functionality. Most online comparisons emphasize on ML capabilities, but again I'm not doing anything that fancy.
I briefly read up on jupyter hub, but I haven't tried it out yet. I only have a linux machine with crappy hardware that's up 24-7, and I'm often not on the same internet as the linux machine, so I'd probably have to tailscale back. I can't setup port forwarding with my internet administration privileges.
The other alternatives are to store the jupyter notebooks either on google drive and mount it to my local devices, or to push the code to github and pull before every use. I
/r/IPython
https://redd.it/xynkpi
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The code is all fairly light. I'm just reading in data and graphing it. The notebook will be single-user.
The code runs significantly slower on google Colab than if I run them on my local machines, but nothing unbearable, and speed isn't a huge issue. That said, fast wall times are always better. I also haven't fully dug deep into Colab yet so IDK how it compares with standard jupyter in terms of functionality. Most online comparisons emphasize on ML capabilities, but again I'm not doing anything that fancy.
I briefly read up on jupyter hub, but I haven't tried it out yet. I only have a linux machine with crappy hardware that's up 24-7, and I'm often not on the same internet as the linux machine, so I'd probably have to tailscale back. I can't setup port forwarding with my internet administration privileges.
The other alternatives are to store the jupyter notebooks either on google drive and mount it to my local devices, or to push the code to github and pull before every use. I
/r/IPython
https://redd.it/xynkpi
reddit
Colab/jupyter hub/google drive/github?
I frequently switch between two devices, one windows and another Mac. I'm wondering what the best way to store my jupyter notebooks would be. The...