google-cloud-datalab


Datalab Notebook Answer y/N in prompt


In datalab notebook, I having been stuck in answering y/N in the output prompt.
for example,
If I use !pip install somepackage -y , I can use flag -y to answer yes.
However, when I try to copy some table from one dataset to another, it the destination table already exists, the prompt comes out to ask me to replace the destination table? but I can't type y in notebook, then the notebook will be stuck there.
!bq cp project1:dataset1.table1 project2:dataset2.table2
pop:
cp: replace project2:dataset2.table2? (y/N)
There is no flag I can set to overwrite existing destination table, does anyone has any idea how to deal with this kind of situation? Otherwise, the notebook will keep running unless I force to stop it.
Thank you very much!
Adding questioner's comment (not mine) as the answer so that this doesn't appear as an unanswered question.
Problem SOLVED! 1. use < !yes | bq cp project1:dataset1.ta‌​ble1 project2:dataset2.ta‌​ble2 > to repalce the destination table' 2. use < !yes n | bq cp ... > to not replace. Thank you.

Related Links

How can I programmatically give Cloud ML access to a bucket?
Running cloud datalab kernel on my own server?
How can I get the Cloud ML service account programmatically in Python?
Google datalab : how to import pickle
Is text the only content type for %%storage magic function in datalab
Do I need to update gcloud components as indicated in docker startup
How to import user-written custom modules in google datalab?
Access to Google Cloud Datalab Fails with ssh Error
Cloud Datalab permissions - 403 on VM URL when sharing access
Do I need to manually specify the project on docker Datalab?
DATALAB does not start correctly
Datalab Notebook Answer y/N in prompt
Error on deploy
How can i load my csv from google dataLab to a pandas data frame?
Recommended approach for installing and using new kernels?
How do you logout/switch accounts?

Categories

HOME
turing-machines
telegram
dns
css3
solaris
access
cakephp-3.4
webix
nstableheaderview
computer-science
bing-maps
reactive-programming
startup
symmetricds
screen-readers
modbus-tcp
forgot-password
google-container-registry
displaytag
dynamically-generated
openmdao
failover
winpe
xbox
kudu
weather
record
simplecv
gnat-gps
html-encode
swagger-php
amazon-ses
z-notation
opensmpp
importerror
puredata
configurationmanager
launchctl
amq
tinkerpop
filehandle
skin
d3-force-directed
rsa-archer-grc
juice-ui
vcloud-director-rest-api
meteor-packages
segment-io
tinkerpop3
spring-cloud-feign
ng-grid
riot
hadoop-partitioning
kendo-upload
themoviedb-api
lazybones
django-urls
google-books
user-permissions
angular-gettext
post-commit-hook
jqmodal
spring-3
light
gd-graph
printdialog
facebook-timeline
pclzip
video-codecs
swfobject
twisted.web
android-sdk-2.3
qtconcurrent
predicatebuilder
kqueue
wiimote
relative
ikimagebrowserview
mbeans
massive
tmx
cac
web-garden
localizable.strings
change-management

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App