Hi, I have a little problem. Python decorators doesn't work in vscode, bot work in vscode jupyter. Do you know how to fix it? Example: #Decorator are just function that take function as first #parameter and return a function def logging(f): def decorator_function(*args, **kwargs): print('executing '+f.__name__) return f(*args, **kwargs) return decorator_function #Use it like this @logging def hello_world(): print('Hello World') hello_world() returns an error: >>> def logging(f): ... def decorator_function(*args, **kwargs): ... print('executing '+f.__name__) ... return f(*args, **kwargs) ... return decorator_function ... #Use it like this ... @logging File "", line 7 @logging ^ SyntaxError: invalid syntax
Personal preference, but I hate music in technical videos. At best, it's distracting. At least in this one it didn't drown out the speaker, but it's still distracting.
Thanks for the feedback. I’ve actually started to limit music to the beginning and end of my videos. It’s nice to hear some feedback on this though because I wasn’t sure if it seemed too quiet not having the music.
@@GottaBeGeek I'm glad you took it as constructive criticism, but I really don't understand why there's any question. You would think it strange if you went to a college math class and the prof turned on music before he began his lecture. Even at places where music is often featured, like church or political rallies, they turn it off when the speech/sermon starts.
best thanks really have a good day chief
you are so amazing!!
Hi, I have a little problem. Python decorators doesn't work in vscode, bot work in vscode jupyter. Do you know how to fix it?
Example:
#Decorator are just function that take function as first
#parameter and return a function
def logging(f):
def decorator_function(*args, **kwargs):
print('executing '+f.__name__)
return f(*args, **kwargs)
return decorator_function
#Use it like this
@logging
def hello_world():
print('Hello World')
hello_world()
returns an error:
>>> def logging(f):
... def decorator_function(*args, **kwargs):
... print('executing '+f.__name__)
... return f(*args, **kwargs)
... return decorator_function
... #Use it like this
... @logging
File "", line 7
@logging
^
SyntaxError: invalid syntax
very helpful indeed, thanks. Which background music is it?
It’s Epidemic Sound. Here’s my referral link: www.epidemicsound.com/referral/5pbjzk/
Great video!
thanks for the shoutout : )
No problem.
Personal preference, but I hate music in technical videos. At best, it's distracting. At least in this one it didn't drown out the speaker, but it's still distracting.
Thanks for the feedback. I’ve actually started to limit music to the beginning and end of my videos. It’s nice to hear some feedback on this though because I wasn’t sure if it seemed too quiet not having the music.
@@GottaBeGeek I'm glad you took it as constructive criticism, but I really don't understand why there's any question. You would think it strange if you went to a college math class and the prof turned on music before he began his lecture. Even at places where music is often featured, like church or political rallies, they turn it off when the speech/sermon starts.
Fair point.
Great Video!