Skip to content

print "." problem, when I print something using "for" or "while" statement #36

@choies1

Description

@choies1

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.



==========  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(".").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions