I looked at this question, but it provides a Linux solution. I'm running Windows 7. I developed a working Vpython notebook in Jupyter on one machine (in my office). It runs Python 2 (Anaconda package), and it does everything I want it to do.
I have another Windows 7 machine in my classroom. It has Anaconda3, and when I try to run the same notebook file, I get a black, empty scene for the vpython code. Also, if I try to start a New notebook from the Home tab of Jupyter notebook, there is not a VPython selection in the classroom machine. On my office machine (with Anaconda, Python 2), there is a VPython notebook option in the New list of Home.
I have done conda update conda and conda update anaconda and pip install vpython --upgrade commands on both machines and get the same behavior.
I have tried creating a new notebook with vpython commands and get the same behavior.
Summary: VPython in a Jupyter notebook with Python 2 on Windows 7 works. VPython in a Jupyter notebook with Python 3 on Windows 7 fails.
Any reasonable solutions?
Related
Jupyter notebook is not opening kernels in my current environment. Running which jupyter in command line indicates the proper directory within the environment, my environment has nb_conda installed using conda_forge and also has ipykernel installed, I just updated conda to version 4.5.12. When I open jupyter notebook I am able to see a conda tab and my current environment shows up there but when I try to create a new notebook or change kernel within a notebook my current environment does not show up. When I run jupyter notebook in iterm (I am using zsh) I receive a message [nb_conda_kernels] enabled, 2 kernels found which is a problem because I have three kernels (root, an old environment, my current environment).
I've tried looking through different help forums on github and following the readme but I still haven't managed to get it to work. Any help would appreciated!
I'm following Kx instructions on installing jupyterq, embedpy and kdb in Anaconda. This is where I want to get to - a Jupyter notebook where I enter q commands. However, when I launch Jupyter notebook from Anaconda Navigator, I'm only able to create a new Python 3 notebook.
How do I create a notebook which accepts q commands?
Checked so far:
I can launch q from ubuntu terminal, it's licensed
In Anaconda Navigator, base environment shows jupyterq, embedpy and kdb as installed
I see jupyterq_kernel.q and others in my ~/anaconda/q directory
EDIT: Meanwhile, I downloaded Jupyter kernel for kdb+ manually. Its install.sh apparently registered q kernel for Jupyter. I'm able to open a notebook with jupyter notebook from terminal.
The below is now redundant as the Conda package has been fixed, but is left for reference
You can follow the guide here http://www.enlistq.com/installing-kdb-jupyterq-and-embedpy-using-conda/ in order to add the kernel to Jupyter, it seems the package misses kernel.json
From the comments it appears this is or will be fixed, but given you've already installed everything, it is likely quicker to follow the relevant section of this tutorial (under "installing jupyterq")
In Windows 10, I have done the following steps:
1º Install Julia.
2º In Julia shell:
Pkg.add("Ijulia")
INFO: Package IJulia is already installed
3º Launch the jupyter notebook from the Anaconda Prompt:
jupyter notebook
Then, the jupyter notebook is launched, however the Julia notebook option does not appear.
Any idea about what is happening??
Thank-you.
Working on my Windows machine, I installed Anaconda 3 and created a Python 2 environment in Anaconda Prompt using commands below:
conda create -n py2 python=2
activate py2
conda install numpy matplotlib pandas scikit-learn
However, when I run jupyter notebook in Anaconda Prompt, in the opened notebook, I checked Python version using this:
import sys
print('Python version is:', sys.version_info)
I found out it is Python 3 instead of Python 2...I wonder what's going on?
It turns out I need to install jupyter notebook like below in Anaconda Prompt as well, otherwise, the default Python 3 version notebook will be called.
conda install jupyter notebook
Now, if we launch jupyter notebook again, we'll get Python 2.
You may also find that you need to install the Notebook extensions which provides Conda environment and package access extension from within Jupyter Notebook. You can do that by running:
conda install nb_conda
I had Anaconda installed on Windows 8.1 and Jupyter notebook was working just fine with Julia and Python. I tried to install R kernel, however, it resulted in an error that some dependencies are needed, so I installed "m2w64-zlib" library in Anaconda then I installed R using this command "conda install -c r r-essentials" and I needed to update anaconda, so I did. After finishing all installations and updates Jupyter doesn't work. It just opens for a second and then switches off without opening the notebook in my browser.
I dont write code in "R" but Anaconda provides a few steps on how to get "R" working. Follow the steps in this link, Hope it helps:
https://docs.continuum.io/anaconda/r_language
It works now fine.
I uninstalled ipython
conda uninstall ipython
then installed Jupyter.
conda install jupyter