Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cannot access modules from neighbouring directories jupyter notebook

import os
import sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
    sys.path.append(module_path)
# and add __init__.py to the modules
Comment

PREVIOUS NEXT
Code Example
Python :: python global variable that can be iterated 
Python :: how to print a text in python 
Python :: pandas set column to value using mask 
Python :: Adding new fields in ModelAdmin with fieldsets to edit user, and add_fieldsets whan creating a new user 
Python :: How to test if a webpage is an image python requests 
Python :: numpy substract subsequent elements 
Python :: pandas select only earliest event for duplicates 
Python :: timeplanner-1 
Python :: how to subtract two timestamps in python with presence of + and minus in timestamps 
Python :: python grammar checker api 
Python :: print e 
Python :: bogo sort 
Python :: text to qr code python 
Python :: pool does not print process id 
Python :: statsmodels logistic regression odds ratio 
Python :: bad resolution with df plot 
Python :: hexing floats 
Python :: python hewwo world 
Python :: Arduino - Send Commands with Serial Communication with python 
Python :: python warshall algorithm stackoverflow 
Python :: tanimoto coefficient rdkit 
Python :: check is symmetric python 
Python :: python pass function as argument 
Python :: dataset.shape 
Python :: pandas rename column values 
Python :: pygame get rect 
Python :: create set in python 
Python :: remove list of value from list python 
Python :: python serial port 
Python :: a list inside a list python 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =