Other ideas or suggestions? After I wrote this I realized options B) and D) are basically the same. I think this is giving me my default 2.7 home env python, and there is no tensorflow library there. Maybe this would work, but right now I don't want to risk introducing some other package/module dependency.ĭ) From the files tab, I can select and open one of the ipython notebooks in my home directory, and while this opens with python 3.x, I can go into the kernel tab and select the 2.7 kernel environment. I have uploaded the Udacity class ipython notebook into my home directory.Ī) From inside the pythonanywhere virtual environment, I can start a notebook on a localhost, but I don't have access to that localhost port, so that doesn't seem to give me access to the running notebook.ī) I can create an empty python 2.7 notebook, and I could cut and paste the Udacity notebook material into that notebook as a workaround (I guess) but the python 2.7 notebook environment does not have access to the tensorflow library in the virtualenv.Ĭ) I guess I could install the tensorflow library into my default (python 2.7) workspace without a virtual environment, but there appear to be many dependencies and this kind of defeats the purpose of having virtual environments. I have created a python 2.7 virtualenv ("tensorflow") and have installed ipython, jupyter and tensorflow there. Start by creating and moving into a new project directory: mkdir django5.0 cd django5.0/. The class provides some ipython notebooks as projects / homework to work from. Now, whenever you start a new project, you can create a virtual environment for it. Next every time want to use the stack, type following in cmd: venv\Scripts\activate.Is there a way to do this? Start an ipython / jupyter notebook inside of a specific virtualenv?īackground: I am taking a Udacity deep learning class that uses the google tensorflow library. (you should adjust the file names) virtualenv venv Since Python 3.3, a subset of virtualenv has been integrated in the Python standard library under the venv module. A commonly used tool for virtual environments in Python is virtualenv. Go to the following address to download the complied packages:Īnd place the. Create Virtual Environment with Virtualenv/venv. Another way is to install Microsoft Visual C Compiler for Python 2.7 if you are using Python 2.7. Makes sure that the IPython kernel is available, but you have to manually add a kernel with a different version of Python or a virtual environment. Education 8 hours ago Add Virtual Environment to Jupyter Notebook. To avoid any troubles, install visual studio 2008 if you are using py2.7 or visual studio 2010 if you are using p圓. Create Virtual Environment using virtualenv and add it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |