ipython_customize_color.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="generator" content="GitLab Pages">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  7. <title>Dayalan Saravanan</title>
  8. <link rel="stylesheet" type="text/css" href="style.css"/>
  9. </head>
  10. <body style="background: #ffffff;" onload="onPageLoad();">
  11. <div>
  12. <header>
  13. <h2>Dayalan Saravanan</h2>
  14. </header>
  15. <nav>
  16. <a href="index.html" class="current">Home</a> &nbsp;&nbsp;
  17. <a href="datascience.html">DataScience</a> &nbsp;&nbsp;
  18. <a href="linux.html">Linux</a> &nbsp;&nbsp;
  19. <a href="math.html">Math</a> &nbsp;&nbsp;
  20. <a href="music.html">Music</a> &nbsp;&nbsp;
  21. <a href="numerical.html">Numerical</a> &nbsp;&nbsp;
  22. <a href="programming.html">Programming</a>
  23. </nav>
  24. </div>
  25. <hr />
  26. <h4>Customize the color of text in IPython</h4>
  27. <ol>
  28. <li>
  29. <p>Edit the IPython config file, normally at </p>
  30. <code>~/.ipython/profile_default/ipython_config.py</code>
  31. </li> <br>
  32. <li>
  33. <p>If the config file is not present - you could generate it with the command: </p>
  34. <code>ipython profile create</code>
  35. <p>It will generate config file with default settings and you could edit them as needed.</p>
  36. </li> <br>
  37. <li><p>Find and uncomment (or change) setting </p>
  38. <code>c.InteractiveShell.colors</code>
  39. </li> <br>
  40. <li><p>Change it to one of the color schemes available (you can see them all listed in the comments) </p>
  41. <code>'Neutral', 'NoColor', 'LightBG', 'Linux'</code>
  42. </li> <br>
  43. <li><p>Save config file and start IPython.</p>
  44. </li>
  45. </ol>
  46. <hr />
  47. <footer><span>&copy;</span> 2020 Dayalan Saravanan</footer>
  48. </body>
  49. </html>