Print dot(.) problem of jupyter notebook MicroPython Kernel

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
choies
Posts: 8
Joined: Sat Jan 30, 2016 11:06 am

Print dot(.) problem of jupyter notebook MicroPython Kernel

Post by choies » Thu Feb 21, 2019 2:55 pm

I use the Jupyter notebook MicroPython Kernel for ESP32.

==> https://github.com/goatchurchprime/jupy ... hon_kernel

It works well. However, sometime Jupyter notebook MicroPython Kernel prints "." that I didn’t print, when I use ‘print()’ with "for" or "while" statement.

Followings are my codes. When I use a serial terminal(ex. Teraterm), the output is OK. However, there is a print dot(.) problem when I use Jupyter notebook.

How can I solve the problem? I use Windows 10 (64bit) and Python3 (installed by Anaconda) and ESP32 board with MicroPython.

Code: Select all

==========  My codes &Results   =========
[Using Teraterm]

MicroPython v1.9.4-684-g51482ba92 on 2018-11-21; ESP32 module with ESP32
Type "help()" for more information.

-------code -----------------------------
import time
for k in range(10):
     print("k = {0}".format(k))
     time.sleep(1)

------ results ------------------
k = 0
k = 1
k = 2
k = 3
k = 4
k = 5
k = 6
k = 7
k = 8
k = 9

[Using Teraterm]
--- same code using Jupyter notebook MicroPython Kernel ---
import time
for k in range(10):
     print("k = {0}".format(k))
     time.sleep(1)
------ results ------------------
k = 0
k = 1
k = 2
k = 3
k = 4
.k = 5
k = 6
k = 7
k = 8
k = 9
---------------------------------
As you see the above result, dot(".") is printed (".k = 5"), even though I didn't print dot(".").

Post Reply