jupyter

使用指引

  1. # cat jupyter.sh
  2. cd /data
  3. nohup jupyter notebook --ip=0.0.0.0 --porit=8888 --no-browser --allow-root > jupyter.log 2>&1 &

使用提醒

  1. class S:
  2. def a(self, s: str) -> bool:
  3. s1 = s
  4. print(s1, s)
  5. # jupyter
  6. # %time S().a('{[]}'), S().a("{[]}")
  7. """
  8. [] []
  9. [] []
  10. CPU times: user 695 µs, sys: 212 µs, total: 907 µs
  11. Wall time: 528 µs
  12. (None, None)
  13. """
  14. # jupyter
  15. # S().a('{[]}'), S().a("{[]}")
  16. """
  17. {[]} {[]}
  18. {[]} {[]}
  19. (None, None)
  20. """
  21. """
  22. '\n{[]} {[]}\n{[]} {[]}\n\n(None, None)\n'
  23. """
  24. class S:
  25. def a(self, s: str) -> bool:
  26. s1 = s
  27. print(s1, s)
  28. %time S().a('{[]}'), S().a("{[]}")
  29. """
  30. [] []
  31. [] []
  32. CPU times: user 2.83 ms, sys: 970 µs, total: 3.8 ms
  33. Wall time: 2.16 ms
  34. (None, None)
  35. """
  36. S().a('{[]}'), S().a("{[]}")
  37. """
  38. {[]} {[]}
  39. {[]} {[]}
  40. (None, None)
  41. """

实际jupyter输出如下:
截屏2020-10-15 下午11.55.40.png
输出存在视觉差异。