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

!gdown doesn't work well with comments containing symbols next to it #4828

Open
PrajwalS1234 opened this issue Sep 5, 2024 · 1 comment
Open

Comments

@PrajwalS1234
Copy link

if hash_finder:
  hash = hash_finder.group()
  !gdown -q {hash}  # when I include {} this import won't work
  print("Upload Successful")

The above code snipped fails despite everything being ok with the code.

Expected Behavior
The code is supposed to run without fail no matter what symbols are placed in the comments

But the code fails only when the comment in front of it contains characters like '{' or '}' when you remove these characters from the comment, it executes as normal

What web browser you are using
Firefox

Additional context
Notebook Link

@mayankmalik-colab
Copy link
Contributor

Can you try subprocess.run(['gdown', '-q', hash]) intead of !gdown -q {hash} ?

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

No branches or pull requests

3 participants