Category : jupyter-notebook

Im trying to run: import pyodbc cnxn = pyodbc.connect( ‘DRIVER={ODBC Driver 17 for SQL Server}’ + ‘;SERVER=’ + ‘localhost,1433’ + ‘;UID=’ + ‘sa’ + ‘;PWD=’ + ‘Pass’ + ‘;database=hello’) # database here is optional if you want to specify it below in the query. df = pd.read_sql(‘SELECT TOP (1000) [ParentId],[Lang],[Content]FROM [matchup].[dbo].[MessageTemplate_TF]’, cnxn) cnxn.commit() cnxn.close() print(df) ..

Read more

I’m trying to run the official Tensorflow docker image tensorflow/tensorflow:latest-gpu-jupyter on my 64bit Ubuntu machine. A supported GPU is present an works with Python/Tensorflow in a non-dockerized environment. However, when starting the container via: docker run –gpus all -it –rm tensorflow/tensorflow:latest-gpu-jupyter There is no kernel present (when shutting down, the message "Shutting down 0 kernels" ..

Read more

https://anaconda.zendesk.com/hc/en-us/articles/360023858254-Executing-Terminal-Commands-in-Jupyter-Notebooks In Jupyter Notebook you can execute Terminal commands in the notebook cells by prepending an exclamation point/bang(!) to the beginning of the command. When i run !docker info, there is output Client: Context: default Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Build with BuildKit (Docker Inc., v0.5.1-docker) scan: Docker Scan ..

Read more

https://anaconda.zendesk.com/hc/en-us/articles/360023858254-Executing-Terminal-Commands-in-Jupyter-Notebooks In Jupyter Notebook you can execute Terminal commands in the notebook cells by prepending an exclamation point/bang(!) to the beginning of the command. When i run !docker info, there is output Client: Context: default Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Build with BuildKit (Docker Inc., v0.5.1-docker) scan: Docker Scan ..

Read more

I created a Dockerfile for running Jupyter in Docker. FROM ubuntu:latest FROM python:3.7 WORKDIR /app ADD . /app RUN pip install -r requirements.txt CMD ["jupyter", "notebook", "–allow-root", "–ip=0.0.0.0"] My requirements.txt file looks like this: jupyter git+https://github.com/kubernetes-client/python.git I ran docker build -t hello-jupyter . and it builds fine. Then I ran docker run -p 8888:8888 hello-jupyter ..

Read more

At work we have a bunch of internal servers that use self-signed certificates. I’m trying to install these certs into a Jupyter notebook image so it can access the servers, but for some reason they’re not being found. Here is a minimal Dockerfile: FROM jupyter/datascience-notebook:notebook-6.4.2 USER root RUN echo ‘Acquire::http::proxy "http://proxy.internal.server";’ >> /etc/apt/apt.conf.d/99proxy ENV http_proxy ..

Read more

I have followed the steps in the official CUDA on WSL tutorial (https://docs.nvidia.com/cuda/wsl-user-guide/index.html#ch05-sub02-jupyter) to set up a jupyter notebook. However, I can’t figure out how to change the initial working directory. I tried mounting a local directory with the -v switch as well as appending to the launch command –notebook-dir, but neither one of these ..

Read more

I have followed the steps in the official CUDA on WSL tutorial (https://docs.nvidia.com/cuda/wsl-user-guide/index.html#ch05-sub02-jupyter) to set up a jupyter notebook. However, I can’t figure out how to change the initial working directory. I tried mounting a local directory with the -v switch as well as appending to the launch command –notebook-dir, but neither one of these ..

Read more