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

Datalab: moving notebook to other folder
Unable to run a job in datalab
How to link chart and javascript cell to have the same chart object as reference
Why does the Table metadata show zero rows when querying the table returns rows?
Unable to deploy Google Cloud Datalab on an existing project due to RPC failure
google cloud datalab: reload set from bigquery leads to RespondNotReady
datalab gcp package vs gcloud
No controls visible in Google Cloud Datalab?
Not able to deploy Google Cloud Datalab
Best way to get static files in/out of datalab?
How to run google-cloud-datalab on my local linux server?
Missing option to connect to Bitbucket
Charts drawn with %%chart command do not render
Deploying Google Cloud Datalab fails with “Not enough VMs ready”
Can not deploy Google Cloud Datalab - no logs
I have created charts with google-cloud-datalab. I now want to publish those to end users

Categories

HOME
django
xml
c99
ecmascript-6
pda
solaris
devise
owl-carousel
jetty
echo
jtextpane
special-characters
g++
comsol
renjin
http-post
entitymanager
standards
soci
drive
react-toolbox
pchart
dynamically-generated
game-theory
firebase-analytics
winexe
iis-express
alm
userdefaults
android-gridview
gnat-gps
instantiation
joomla2.5
dm-script
android-checkbox
opencmis
jide
servermanager
automapper-5
hammer.js
insight
monkey
ampps
structuremap4
builtins
envi
async.js
beamer
mapinfo
android-dateutils
gogs
lean
observablecollection
shopping
kango-framework
database-relations
false-sharing
jparsec
sapi
toran-proxy
qt5.2
avisynth
dllimport
sony-lifelog-api
ember-cli-rails
atoi
uncompress
keyup
snoop
ms-access-2000
fits
uncaught-typeerror
deform
cbind
wcm
memset
amslidemenu
drupal-nodes
sbcl
mt4j
artemis
jammer
printdialog
scmmanager
dolby-audio-api
android-sdk-2.3
android-loadermanager
nokia-s40
cuda-gdb
wiimote
role
mysql-error-1205
listactivity
http-daemon
unattended-processing
twitterizer
qglwidget
cac
silent
easyb
rowlex
ajax-polling
data-mapping
business-model
lemmatization

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