Skip to content

Commit

Permalink
Auto copy js-py converted code to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Jul 8, 2023
1 parent 52b6a06 commit 9b4f27a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions geemap/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,6 +1486,13 @@ def import_btn_clicked(b):

contents = "".join(code).strip()
# create_code_cell(contents)

try:
import pyperclip
pyperclip.copy(str(contents))
except Exception as e:
pass

with search_output:
search_output.outputs = ()
print(
Expand Down

0 comments on commit 9b4f27a

Please sign in to comment.