For the Google Wave Python Robot Tutorial, my capabilities.xml is visible and I can add it to a Wave, but the robot isn't actually responding to the events. I checked the logs, but I've fixed it so I'm not getting any more errors. Any suggestions?
There's known issue with Wave API: Issue 158 Fix is ready and is expected to be deployed in "coming days".
Related
I am trying to build a Chatbot using Jupyter Notebook on Google Colab. I am using IPython Markdown to better segregate the user conversations. User will key in their message using input() while the bot responses are IPython display(markdown()).
I am facing issues when i tried to print a starting messages (bot output before a user input). This error occurs approximately 50% of the time I run the script. No errors are faced if I did not print out the starting message. I have tried restarting the kernel but to no avail.
Does anyone know what is the reason for this and how I can fix it?
This is an example of a successful case.
This is an example of a failed case. As you can see, the code is running indefinitely on the input() line.
This is the sample code, where input() box does not pop up at times.
from IPython.display import Markdown, display
display(Markdown("*Alex:* Hello."))
input(">> You: ")
This seems to be a kind of bug in Jupyter notebook, described in the past years by many programmers. I was facing the same problem. After several tests I have found (at least in my code) that the problem disappears if print() functions are removed before input().
Is there any Jupyter widget for visualizing audio synced with a playhead on a time-series plot?
I would like to visualize data derived from an audio sample (e.g. spectrogram and various computed signals), listening to the audio sample while seeing the playhead move across the plots.
I found this old gist https://gist.github.com/deeplycloudy/2152643 which uses pyaudio on the Python backend to play the sound. Any good solutions out there that are a bit less hacky, e.g. ideally entirely JavaScript-based and with playback running fully in the browser?
You can now :). It took me about 10 minutes to put together a demo using Jupyter proxy widget to load a wavesurfer control into a notebook. It works in Chrome but I haven't tested it anywhere else. It should work anywhere wavesurfer and Jupyter work.
Here is a screenshot
See the pastable text from the notebook here:
https://github.com/AaronWatters/jp_doodle/blob/master/notebooks/misc/wavesurfer%20demo.ipynb
For information on jp_proxy widgets look here:
https://github.com/AaronWatters/jp_proxy_widget
In the time since I posted this question, a few new solutions have emerged:
Scott Condron: Building Tools to Interact With Your Data
Building Tools to Interact With Your Data 2020-10-21-interactive-audio-plots-in-jupyter-notebook.ipynb
These solutions use holoview, have a playhead linked between the audio and the plots, and can run fully on the browser.
I am learning Python & Kivy: (Life was a lot easier using assembly for embedded controllers).
Now the whole display is rotated 90 degrees CCW. Demo programs that used to work are now displayed rotated.
Presumably I did something that set a permanent "rotate display" flag while running Python. Where and how can I reset it? I rebooted the computer but no improvement.
Win-7 64. Python 3.4
I ran into this problem a while back when I was learning Kivy. I even left a frustrated comment on a youtube video.
There's a file at c:\users\[username]\.kivy\config.ini which you need to modify or delete.
This is a known problem for Windows users, you can't watch YouTube or play/use applications, because you don't have an audio device and the app shows an error messages or simply crashes.
I want to avoid this on my Python game that I am currently making, but I couldn't find anything useful on the web, has anyone a solution?
I am using a RPi camera to capture video in a MJPEG format to file. However, when I attempt to do so, the application freezes up and requires me to manually kill it. I am not sure why it is freezing up, but any ideas to resolve this problem would appreciated.
This program entails the following code in accord to the documentation from the following website under the section "start_recording": https://picamera.readthedocs.org/en/release-1.10/api_camera.html#picamera.camera.PiCamera.start_recording
The actual program is as listed below:
start_recording('/home/pi/testVideo.mjpeg', format = 'mjpeg')
camera.wait_recording(5)
stop_recording()