IPython REPL will not start when startup script specified
I am new to Python and Visual Studio and having issues getting IPython to work (I need to be able interactively plot data using matplotlib).

I've gone into Python Tools\\Interactive Windows\\Interactive Mode and set it to IPython.  Once I start typing in the REPL I get the following error:

Traceback (most recent call last):
  File "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\visualstudio_py_repl.py", line 1370, in <module>
    _run_repl()
  File "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\visualstudio_py_repl.py", line 1366, in _run_repl
    BACKEND.execution_loop()  
  File "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\visualstudio_ipython_repl.py", line 308, in execution_loop
    self.execute_file_as_main(self.launch_file, None)
  File "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\visualstudio_ipython_repl.py", line 291, in execute_file_as_main
    contents = f.read().replace("\\r\\n", "\\n")
TypeError: expected bytes, bytearray or buffer compatible object
The Python REPL process has exited

I'm using Visual Studio Pro 2013 with PTVS 2.2
Python 3.4
IPtython 3.0

Any insight would be appreciated.

diff --git a/Python/Product/PythonTools/visualstudio_ipython_repl.py b/Python/Product/PythonTools/visualstudio_ipython_repl.py
index ca08966e1..c9e950ce4 100644
--- a/Python/Product/PythonTools/visualstudio_ipython_repl.py
+++ b/Python/Product/PythonTools/visualstudio_ipython_repl.py
@@ -17,6 +17,7 @@
 import re
 import sys
 from visualstudio_py_repl import BasicReplBackend, ReplBackend, UnsupportedReplException, _command_line_to_args_list
+from visualstudio_py_util import to_bytes
 try:
     import thread
 except:
@@ -288,7 +289,7 @@ class IPythonBackend(ReplBackend):
     def execute_file_as_main(self, filename, arg_string):
         f = open(filename, 'rb')
         try:
-            contents = f.read().replace("\\r\\n", "\\n")
+            contents = f.read().replace(to_bytes("\\r\\n"), to_bytes("\\n"))
         finally:
             f.close()
         args = [filename] + _command_line_to_args_list(arg_string)

['Python/Product/PythonTools/visualstudio_ipython_repl.py']