question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pykwalify breaks output in jupyter notebook (python 2.7)

See original GitHub issue

During __init__, pykwalify reloads sys module, which resets the stdout to the console. This causes all output to be printed to the console instead of the jupyter notebook. It is caused by the change in this commit.

Moreover, in this discussion, using reload(sys) and sys.setdefaultencoding is not recommended.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Grokzencommented, Dec 23, 2016

@JoostJM Thanks for testing it. If you find any other issues reagrding utf-8 or ecnoding please open up a new issue.

Closing as fixed/resolved

0reactions
JoostJMcommented, Dec 23, 2016

@Grokzen Thanks! I tested using your branch ‘unstable’, and it worked, jupyter notebooks don’t break anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jupyter notebook double output - Stack Overflow
I've fixed this by restarting the kernel and the re-loading the web page (i.e. F5).
Read more >
What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >
How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks !...
Read more >
Installing the classic Jupyter Notebook interface
We recommend using the Anaconda distribution to install Python and Jupyter. ... Jupyter installation requires Python 3.3 or greater, or Python 2.7.
Read more >
Python and Jupyter Notebook | Scientific Computing and Data
For example: $ module spider python/3.6.2 ... << output from stdout >> Using local port 8888 Jupyter Notebook is started on compute node...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found